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.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


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.0.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.0-cp313-cp313-win_amd64.whl (264.2 kB view details)

Uploaded CPython 3.13Windows x86-64

qmfcalc-0.1.0-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

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

Hashes for qmfcalc-0.1.0.tar.gz
Algorithm Hash digest
SHA256 28fc9893b1ead72ff6b79e0f5e74e71a29d69b1fb97dab40a1adaf706fb6ad7a
MD5 e2ae39e2e185056805be2ae75b15b698
BLAKE2b-256 d9f0fa3dbd9dcecac9d5f60bffee10bbc047404e62bb177e2590dd1480e2145e

See more details on using hashes here.

Provenance

The following attestation bundles were made for qmfcalc-0.1.0.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.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

Hashes for qmfcalc-0.1.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 cccf2c9102b1528d5e067836763ef4c32549761104ae2d6e38462290fa539e68
MD5 1a8bdb291dc132285cef98ac9c7cf303
BLAKE2b-256 e7d46206e7b7067e158a4bb0b6b8107a34fe1876d41ffde181d6b1d73dd8aeed

See more details on using hashes here.

Provenance

The following attestation bundles were made for qmfcalc-0.1.0-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.0-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for qmfcalc-0.1.0-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 07a9d704e9cc5029ccf6f9de205353a2dadbbe794bd6e6255783dfa97bc16a10
MD5 f4655496df75acc9db2cda32336843e5
BLAKE2b-256 d82016c4c753f1a9eb783ca87f5c9b4ad9c7809a9698ce5eaaf7627c80c02be1

See more details on using hashes here.

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

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