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.3-cp313-cp313-win_amd64.whl (1.9 MB view details)

Uploaded CPython 3.13Windows x86-64

benanalysis-4.1.3-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (973.8 kB view details)

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

benanalysis-4.1.3-cp313-cp313-macosx_11_0_arm64.whl (647.8 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

benanalysis-4.1.3-cp312-cp312-win_amd64.whl (1.9 MB view details)

Uploaded CPython 3.12Windows x86-64

benanalysis-4.1.3-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (973.1 kB view details)

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

benanalysis-4.1.3-cp312-cp312-macosx_11_0_arm64.whl (647.7 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

File details

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

File metadata

File hashes

Hashes for benanalysis-4.1.3-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 73cfb81759fe4f9fd71132ff1bbd072bb64e07b03599b60338c013733b5ec530
MD5 6c7a68378daef3190b2a300397e17a11
BLAKE2b-256 75f1b6ededb43d2043629e55808d3b41f68fb60bea7d36880f962e74fed249ec

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for benanalysis-4.1.3-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 b85bfb05256ad4b7b6df5a1a629f9becc6f68993fe6c5fe715e15375af84f3c6
MD5 1ac35686054d40dc493b070490e67df0
BLAKE2b-256 aa676e98755018e772511bef79f622616f3fc0b09d2940b96a4709e1e2344629

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for benanalysis-4.1.3-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5f6454feed4a4bfad628af2c7ddb6902b6adb5a1c5c34cb8f80fdbf636922c52
MD5 e610667fe34d484fe0a22706f5d50adc
BLAKE2b-256 0ee3c0bd0b822594f470bb7dd997066bb4959c65b83be762dcc455a7eeb725d8

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for benanalysis-4.1.3-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 53cfcee6f7ba1b5cf9f4ca179c75f0620082cf8b5ba7ca14c351d6e1513644aa
MD5 3ff167133af0eb85aff9fc2918c9de7c
BLAKE2b-256 e37261195ad2ba5607540a2655192d7fa2708b002cdb471ea8e5fbe840e1832e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for benanalysis-4.1.3-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 f5f9cc995d7f9c88fc9d6124d1f7f18fb1a1d2078f812d3a301264d8a56aab78
MD5 9dd22cde0ceee86642c60a787b2c5b46
BLAKE2b-256 8fe1955f647f402dbf3d547a63171b44d06479bf4f3500344c92653536bb7730

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for benanalysis-4.1.3-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fc0efe6c6a45098a0f5f0fb726e31b281036ab9cfb1bdacd4120191fd31ce904
MD5 4ccd0fa69848537524c817165bf07113
BLAKE2b-256 67e57d2967c1a70dd9393496a06f5bebc90f3d724a6d888de6210e9a4012bdce

See more details on using hashes here.

Provenance

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