Python bindings for quadrupole mass filter voltage calculations
Project description
qmfcalc
Quadrupole mass filter calculation utilities.
Python
The Python package builds a native extension with pybind11:
python -m pip install .
Python 3.13 is the supported target.
or directly from a Git checkout:
python -m pip install git+https://github.com/<owner>/<repo>.git
Use it from Python:
import qmfcalc
result = qmfcalc.calculate_voltages(
r0_mm=15.0,
target_m_over_q_amu_per_z=250.0,
resolution=250.0,
rf_frequency_mhz=1.0,
)
print(result["rf_voltage_v"], result["dc_voltage_v"])
rf_voltage_v is the per-rod peak-to-peak RF voltage. dc_voltage_v is the
pole-to-pole DC voltage.
The GitHub Actions workflow in .github/workflows/python-package.yml builds and
tests Python 3.13 Linux and Windows wheels on pushes and pull requests.
PyPI release
Configure a PyPI pending trusted publisher with:
- PyPI project name:
qmfcalc - Owner:
kenji0923 - Repository:
qmfcalc - Workflow name:
publish-pypi.yml - Environment name:
pypi
Then publish a GitHub Release from a version tag, for example:
git tag v0.1.0
git push origin v0.1.0
The .github/workflows/publish-pypi.yml workflow builds the Python 3.13 Linux
and Windows wheels, builds the source distribution, and publishes them to PyPI.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file qmfcalc-0.1.0.tar.gz.
File metadata
- Download URL: qmfcalc-0.1.0.tar.gz
- Upload date:
- Size: 17.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
28fc9893b1ead72ff6b79e0f5e74e71a29d69b1fb97dab40a1adaf706fb6ad7a
|
|
| MD5 |
e2ae39e2e185056805be2ae75b15b698
|
|
| BLAKE2b-256 |
d9f0fa3dbd9dcecac9d5f60bffee10bbc047404e62bb177e2590dd1480e2145e
|
Provenance
The following attestation bundles were made for qmfcalc-0.1.0.tar.gz:
Publisher:
publish-pypi.yml on kenji0923/qmfcalc
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
qmfcalc-0.1.0.tar.gz -
Subject digest:
28fc9893b1ead72ff6b79e0f5e74e71a29d69b1fb97dab40a1adaf706fb6ad7a - Sigstore transparency entry: 2060438142
- Sigstore integration time:
-
Permalink:
kenji0923/qmfcalc@c71196a47de2b3638162a2198f60a62af71c1953 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/kenji0923
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@c71196a47de2b3638162a2198f60a62af71c1953 -
Trigger Event:
release
-
Statement type:
File details
Details for the file qmfcalc-0.1.0-cp313-cp313-win_amd64.whl.
File metadata
- Download URL: qmfcalc-0.1.0-cp313-cp313-win_amd64.whl
- Upload date:
- Size: 264.2 kB
- Tags: CPython 3.13, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cccf2c9102b1528d5e067836763ef4c32549761104ae2d6e38462290fa539e68
|
|
| MD5 |
1a8bdb291dc132285cef98ac9c7cf303
|
|
| BLAKE2b-256 |
e7d46206e7b7067e158a4bb0b6b8107a34fe1876d41ffde181d6b1d73dd8aeed
|
Provenance
The following attestation bundles were made for qmfcalc-0.1.0-cp313-cp313-win_amd64.whl:
Publisher:
publish-pypi.yml on kenji0923/qmfcalc
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
qmfcalc-0.1.0-cp313-cp313-win_amd64.whl -
Subject digest:
cccf2c9102b1528d5e067836763ef4c32549761104ae2d6e38462290fa539e68 - Sigstore transparency entry: 2060438590
- Sigstore integration time:
-
Permalink:
kenji0923/qmfcalc@c71196a47de2b3638162a2198f60a62af71c1953 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/kenji0923
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@c71196a47de2b3638162a2198f60a62af71c1953 -
Trigger Event:
release
-
Statement type:
File details
Details for the file qmfcalc-0.1.0-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.
File metadata
- Download URL: qmfcalc-0.1.0-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
- Upload date:
- Size: 74.5 kB
- Tags: CPython 3.13, manylinux: glibc 2.24+ x86-64, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
07a9d704e9cc5029ccf6f9de205353a2dadbbe794bd6e6255783dfa97bc16a10
|
|
| MD5 |
f4655496df75acc9db2cda32336843e5
|
|
| BLAKE2b-256 |
d82016c4c753f1a9eb783ca87f5c9b4ad9c7809a9698ce5eaaf7627c80c02be1
|
Provenance
The following attestation bundles were made for qmfcalc-0.1.0-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl:
Publisher:
publish-pypi.yml on kenji0923/qmfcalc
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
qmfcalc-0.1.0-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl -
Subject digest:
07a9d704e9cc5029ccf6f9de205353a2dadbbe794bd6e6255783dfa97bc16a10 - Sigstore transparency entry: 2060438342
- Sigstore integration time:
-
Permalink:
kenji0923/qmfcalc@c71196a47de2b3638162a2198f60a62af71c1953 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/kenji0923
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@c71196a47de2b3638162a2198f60a62af71c1953 -
Trigger Event:
release
-
Statement type: