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.13, 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.4-cp313-cp313-win_amd64.whl (2.0 MB view details)

Uploaded CPython 3.13Windows x86-64

benanalysis-4.1.4-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (981.9 kB view details)

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

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

Uploaded CPython 3.13macOS 11.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

benanalysis-4.1.4-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (981.8 kB view details)

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

benanalysis-4.1.4-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.4-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for benanalysis-4.1.4-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 a0485a5112e8bc49f410a55da4769eef197f82787c93e73d9bc057fc9291c66f
MD5 44331faeae56c2912fdceea2bd70803b
BLAKE2b-256 e84e039fc8f2dd8fbda2a7865854ea2afc0579fb0a1ad09f4a8cda772c57a716

See more details on using hashes here.

Provenance

The following attestation bundles were made for benanalysis-4.1.4-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.4-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for benanalysis-4.1.4-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 1083ccdd66e60a471c93f7f3962be4058301375b4e76a1a6680cac38a6700d7f
MD5 871fa58680b4a3292969f45fa9d6ace6
BLAKE2b-256 3622572081a40a0b255f7cdfa3790e77c01815ec9013eda467d5819d4f010007

See more details on using hashes here.

Provenance

The following attestation bundles were made for benanalysis-4.1.4-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.4-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for benanalysis-4.1.4-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bf3ea367c33b24ea9fa5beb34138509dcf85324a5057f2e9f8ca2991fe5e03f4
MD5 1915a28b2738a3599c84be9d32cc7da2
BLAKE2b-256 636861dc3e4f28abb55c62e21ce40cba5b0f6920b0939d64f3e2271a494d2d8d

See more details on using hashes here.

Provenance

The following attestation bundles were made for benanalysis-4.1.4-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.4-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for benanalysis-4.1.4-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 060eef55d1edbba174a98fd37b9813b6bcc3f73447d3a65db8a7454acb61a684
MD5 516a06b2539fe790b53d33a6cb73f860
BLAKE2b-256 1e08f66bac098a4ddeffeeaa0267faceb53b0823bdf1aaa11c4a09f9aa68d52b

See more details on using hashes here.

Provenance

The following attestation bundles were made for benanalysis-4.1.4-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.4-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for benanalysis-4.1.4-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 42dc1a56652614a775874899d9dbb6e9dc3e8e33681151c6ccc0f47c4d9ceb36
MD5 49a5eb9964cf1acdd3430fb0f738b304
BLAKE2b-256 4b50014886b2e5cf0c254c055474b8458810c2d4d05c49a59d19ebe2e68ec286

See more details on using hashes here.

Provenance

The following attestation bundles were made for benanalysis-4.1.4-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.4-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for benanalysis-4.1.4-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 da74e3c6c6c2f1b22d5ffbbdc7878b6dc830a73e33dbd068c0aa571c8c52303c
MD5 167ba560c150cb61e5c706f6bd30e81c
BLAKE2b-256 466080d6abbfb9b446a71b46ce541798dd4ff6ff320093add2a3987106f88ef7

See more details on using hashes here.

Provenance

The following attestation bundles were made for benanalysis-4.1.4-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