Skip to main content

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.12 and 3.13 are supported targets.

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.12 and 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.1
git push origin v0.1.1

The .github/workflows/publish-pypi.yml workflow builds the Python 3.12 and 3.13 Linux and Windows wheels, builds the source distribution, and publishes them to PyPI.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

qmfcalc-0.1.1.tar.gz (17.1 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

qmfcalc-0.1.1-cp313-cp313-win_amd64.whl (264.2 kB view details)

Uploaded CPython 3.13Windows x86-64

qmfcalc-0.1.1-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (74.5 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.24+ x86-64manylinux: glibc 2.28+ x86-64

qmfcalc-0.1.1-cp312-cp312-win_amd64.whl (264.2 kB view details)

Uploaded CPython 3.12Windows x86-64

qmfcalc-0.1.1-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (74.4 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.24+ x86-64manylinux: glibc 2.28+ x86-64

File details

Details for the file qmfcalc-0.1.1.tar.gz.

File metadata

  • Download URL: qmfcalc-0.1.1.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

Hashes for qmfcalc-0.1.1.tar.gz
Algorithm Hash digest
SHA256 6ab5d63168b951f86d446172471b61636650667e4bc6f268ecf3c5c329de5055
MD5 f9bf19237e018d96070994ab0179472c
BLAKE2b-256 4d10a5da10fb055d83b0d727495e94f9deab3b81aff839ac3d2d0a536f9386d9

See more details on using hashes here.

Provenance

The following attestation bundles were made for qmfcalc-0.1.1.tar.gz:

Publisher: publish-pypi.yml on kenji0923/qmfcalc

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file qmfcalc-0.1.1-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: qmfcalc-0.1.1-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

Hashes for qmfcalc-0.1.1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 562eaa72146d844e02ea4b8d4e601f05bb46bc6b8efe52e19e5b233eda038d90
MD5 a6411f3c732c656aaf7ee14af5d25bae
BLAKE2b-256 6612e60e661fe6f7d88c7caf2906d306d054200e0d7a7fb1ef2375af38fa281a

See more details on using hashes here.

Provenance

The following attestation bundles were made for qmfcalc-0.1.1-cp313-cp313-win_amd64.whl:

Publisher: publish-pypi.yml on kenji0923/qmfcalc

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file qmfcalc-0.1.1-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for qmfcalc-0.1.1-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 79883426644e6fe565519e725beaad00a0953ffb3cf861fb0bc9c5490473fdee
MD5 b02cb8503f7123bc9b9ebab8dcf3cfe1
BLAKE2b-256 60b9a3d8395c68c16c3f863fa5ba26d0e6c2da991bbeb75beda6d6ac3991300f

See more details on using hashes here.

Provenance

The following attestation bundles were made for qmfcalc-0.1.1-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl:

Publisher: publish-pypi.yml on kenji0923/qmfcalc

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file qmfcalc-0.1.1-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: qmfcalc-0.1.1-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 264.2 kB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for qmfcalc-0.1.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 af581496520126f2db693504e0d5f3efdf3633aaa839face18b74e7b99a1238f
MD5 050ad2eedbedd7b5732479cf39c3cbf1
BLAKE2b-256 721d011fb78ed6f486f18c902c4f590724b8ff73e5130e0c23c41f51295dd206

See more details on using hashes here.

Provenance

The following attestation bundles were made for qmfcalc-0.1.1-cp312-cp312-win_amd64.whl:

Publisher: publish-pypi.yml on kenji0923/qmfcalc

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file qmfcalc-0.1.1-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for qmfcalc-0.1.1-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 ce501c86f893ed8bdb8a4c95973963fc38b740b2a53385cb3884be708065b71a
MD5 e1f2a33e4f58b5e26176ced6e8f61fb4
BLAKE2b-256 c7a2a4aefa00f97b72daa88760dbb1ee53a2ce6a40fe44007b4008cd63b7be47

See more details on using hashes here.

Provenance

The following attestation bundles were made for qmfcalc-0.1.1-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl:

Publisher: publish-pypi.yml on kenji0923/qmfcalc

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page