Skip to main content

Bentham Spectral Analysis and Calibration Utilities Library

Project description

benanalysis

Bentham Instruments spectral analysis library.

Compatibility

Wheels are built for python versions 3.12 - 3.14, for these systems:

  • Windows: win32, amd64
  • Linux: x86, x86_64
  • MacOS >10.9, universal2 (combined x86_64, arm64, requires pip version > 20.6 on intel, >21.0.1 on Apple Silicon)

Note: Apple silicon build has not been tested.

Installation

pip install benanalysis

Building from source

For local development (building the C++ core + the Python extension + docs), see:

  • BenAnalysis/src/benanalysis-python/README.md in the repository.

Usage

import benanalysis as ba

# Create scans from (wavelength, value) data
scan1 = ba.Scan([400, 410, 420], [1.0, 2.0, 3.0])
scan2 = ba.Scan([405, 415], [10.0, 20.0])

# Arithmetic operators are supported (scan-scan and scan-scalar)
scaled = 2.0 * scan1 + 1.0

# The wavelength grid of Scan/Scan operations depends on interpolation:
# - If interpolation is disabled on both scans, results use only shared wavelengths.
# - If either scan is interpolated, results are evaluated on wavelengths in the overlap
#   region where both scans can be evaluated without extrapolation.
scan1.interpolation = ba.Interpolation.LINEAR
scan2.interpolation = ba.Interpolation.LINEAR
combined = scan1 + scan2

print(combined.wavelengths())

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

benanalysis-4.1.5-cp314-cp314t-win_amd64.whl (2.1 MB view details)

Uploaded CPython 3.14tWindows x86-64

benanalysis-4.1.5-cp314-cp314t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (1.0 MB view details)

Uploaded CPython 3.14tmanylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

benanalysis-4.1.5-cp314-cp314t-macosx_11_0_arm64.whl (689.4 kB view details)

Uploaded CPython 3.14tmacOS 11.0+ ARM64

benanalysis-4.1.5-cp314-cp314-win_amd64.whl (2.0 MB view details)

Uploaded CPython 3.14Windows x86-64

benanalysis-4.1.5-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (1.0 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

benanalysis-4.1.5-cp314-cp314-macosx_11_0_arm64.whl (657.9 kB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

benanalysis-4.1.5-cp313-cp313-win_amd64.whl (2.0 MB view details)

Uploaded CPython 3.13Windows x86-64

benanalysis-4.1.5-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (1.0 MB view details)

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

benanalysis-4.1.5-cp313-cp313-macosx_11_0_arm64.whl (660.9 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

benanalysis-4.1.5-cp312-cp312-win_amd64.whl (2.0 MB view details)

Uploaded CPython 3.12Windows x86-64

benanalysis-4.1.5-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (1.0 MB view details)

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

benanalysis-4.1.5-cp312-cp312-macosx_11_0_arm64.whl (661.0 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

File details

Details for the file benanalysis-4.1.5-cp314-cp314t-win_amd64.whl.

File metadata

File hashes

Hashes for benanalysis-4.1.5-cp314-cp314t-win_amd64.whl
Algorithm Hash digest
SHA256 00b5930dffa328cb125c3f2c4daf6e7ba62bfb46459511f0e5601ab79069b6b5
MD5 4cbd8e0a2005979292f671b2fc9676f9
BLAKE2b-256 b187e7ed3ef813e61e692e5847c27e32b4b6777a4314e45c372d6c5054260d3d

See more details on using hashes here.

Provenance

The following attestation bundles were made for benanalysis-4.1.5-cp314-cp314t-win_amd64.whl:

Publisher: wheels.yml on BenthamInstruments/BenAnalysis

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

File details

Details for the file benanalysis-4.1.5-cp314-cp314t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for benanalysis-4.1.5-cp314-cp314t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 5ff76b3807f3e2c9777fc8d7ca0fa950b0a1047d5d6695d7930323540c4c972c
MD5 39f230d260b9af033ec3c21ea0b7e751
BLAKE2b-256 2c9d5226897693f00d829e06e95eb35848532a8ce25843ba922e003ca6b2cded

See more details on using hashes here.

Provenance

The following attestation bundles were made for benanalysis-4.1.5-cp314-cp314t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl:

Publisher: wheels.yml on BenthamInstruments/BenAnalysis

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

File details

Details for the file benanalysis-4.1.5-cp314-cp314t-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for benanalysis-4.1.5-cp314-cp314t-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 785aa8f95f03a35d4116b5d8aa97b0dd6982c3888a560aa5d15595bb98d550c9
MD5 d9ce793ac813aca50865d2b363ed78ea
BLAKE2b-256 c546a3ab88a6f59e2d6deb4425c87566d9b1ba7617b5df2ccbfafbd27433b9e2

See more details on using hashes here.

Provenance

The following attestation bundles were made for benanalysis-4.1.5-cp314-cp314t-macosx_11_0_arm64.whl:

Publisher: wheels.yml on BenthamInstruments/BenAnalysis

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

File details

Details for the file benanalysis-4.1.5-cp314-cp314-win_amd64.whl.

File metadata

File hashes

Hashes for benanalysis-4.1.5-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 e050c3d6ec66a6bec88cde1924dc2862a84dbeed5b9b0c980c7924dcfd183cb2
MD5 72752f7932e02e5e5013cec97545e565
BLAKE2b-256 6a63e60fb6c9c2aa662c415295e2cf63fb96a35652697915c95543a390ff7a38

See more details on using hashes here.

Provenance

The following attestation bundles were made for benanalysis-4.1.5-cp314-cp314-win_amd64.whl:

Publisher: wheels.yml on BenthamInstruments/BenAnalysis

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

File details

Details for the file benanalysis-4.1.5-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for benanalysis-4.1.5-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 140ab541238d3ff1c64a8428b78e131af6d2f69c549b7f46b00ecfdd51e7f87d
MD5 e5ff773ef8b9e395f01a81554f3a8dcc
BLAKE2b-256 fcf0dd0b8b0cd39cd59ceb2bce790d4c913ab600a155e6302d8a0e29f8e3434f

See more details on using hashes here.

Provenance

The following attestation bundles were made for benanalysis-4.1.5-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl:

Publisher: wheels.yml on BenthamInstruments/BenAnalysis

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

File details

Details for the file benanalysis-4.1.5-cp314-cp314-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for benanalysis-4.1.5-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b2faba2c1a44ef2c493af57179621818cd9a302750f2dfc0581ce3cec8b516ab
MD5 7299b8d8fd73ecc97c40ccf574996575
BLAKE2b-256 81c4e11d9ba342d0a6494e6a866dbba7c12708bd3561bd7007f23b27e449de6c

See more details on using hashes here.

Provenance

The following attestation bundles were made for benanalysis-4.1.5-cp314-cp314-macosx_11_0_arm64.whl:

Publisher: wheels.yml on BenthamInstruments/BenAnalysis

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

File details

Details for the file benanalysis-4.1.5-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for benanalysis-4.1.5-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 e7d2f3b8f59905078fa724b4c7a9b1e61fca253f53fd934e6dee75bfec5c0018
MD5 f5fbfef58041d17cad53605fe286e061
BLAKE2b-256 57e747d3b335430928a9539413e2a135ff2cbcaba39e107261d918ed2a5c305e

See more details on using hashes here.

Provenance

The following attestation bundles were made for benanalysis-4.1.5-cp313-cp313-win_amd64.whl:

Publisher: wheels.yml on BenthamInstruments/BenAnalysis

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

File details

Details for the file benanalysis-4.1.5-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for benanalysis-4.1.5-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 ef8905c70fbcc26b09c8821c3d520024af2552e1e59f8d57f8648ad093435bda
MD5 45a5e911acdbaa0e4182b81b9894efec
BLAKE2b-256 352cbf1cc1f14509cd1f9825132d217429fa595b5d9795405344a4c44a068110

See more details on using hashes here.

Provenance

The following attestation bundles were made for benanalysis-4.1.5-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl:

Publisher: wheels.yml on BenthamInstruments/BenAnalysis

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

File details

Details for the file benanalysis-4.1.5-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for benanalysis-4.1.5-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b3bc04d394429e7b50934b1b87c73279a439bcfdee903a5aac0b75f59235487e
MD5 578966e73fcf56c55ebe327aab90c661
BLAKE2b-256 33ff7c07e81a12e2d7f365558d87b931b55838aec4c004cbaf2df3dad1782c9b

See more details on using hashes here.

Provenance

The following attestation bundles were made for benanalysis-4.1.5-cp313-cp313-macosx_11_0_arm64.whl:

Publisher: wheels.yml on BenthamInstruments/BenAnalysis

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

File details

Details for the file benanalysis-4.1.5-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for benanalysis-4.1.5-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 f5c000133f37b7ed08566c1a9736625e8fb256df3ec1bd144c07d2235d612cbb
MD5 5557542c1240a00f48cb633c9580b050
BLAKE2b-256 09da4d9eeea2fe2dbcbabc18e53fe971535e96ad8687c20a0f4a1ea0f5ad91de

See more details on using hashes here.

Provenance

The following attestation bundles were made for benanalysis-4.1.5-cp312-cp312-win_amd64.whl:

Publisher: wheels.yml on BenthamInstruments/BenAnalysis

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

File details

Details for the file benanalysis-4.1.5-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for benanalysis-4.1.5-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 92d80b77ad3a1d8655f685f6836d7643319fa34553781b9f170fd9b7919dab8c
MD5 4c4d250f48446462e440c146ab2e20de
BLAKE2b-256 8b2b056ba4ba93047ba7c56df84fc93138f8b5773f15c9d333243f03a50389cd

See more details on using hashes here.

Provenance

The following attestation bundles were made for benanalysis-4.1.5-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl:

Publisher: wheels.yml on BenthamInstruments/BenAnalysis

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

File details

Details for the file benanalysis-4.1.5-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for benanalysis-4.1.5-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ef85f0ef8d836fc236f1772a1216494b347623bb3d27dfd0cbf200206b36d049
MD5 a475f7adc73e4659a5a79c879e9185cc
BLAKE2b-256 f71426574f7fc151fbb0a0e75ef80931882a347195d314a337d67d91ba3c4adc

See more details on using hashes here.

Provenance

The following attestation bundles were made for benanalysis-4.1.5-cp312-cp312-macosx_11_0_arm64.whl:

Publisher: wheels.yml on BenthamInstruments/BenAnalysis

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