Skip to main content

spectrum-builder-db

Standalone detector event pools and Python API for OASYS. No Streamlit or plotting dependencies.

Install from this source directory with python -m pip install . (or publish to PyPI and install spectrum-builder-db).

from spectrum_builder import get_spectrum, get_spectrum_dataframe, list_detectors, list_isotopes
print(list_detectors())
print(list_isotopes("NaI"))
spectrum = get_spectrum(detector="NaI", isotope="Xe-133", number_of_bins=1024,
    number_of_signal_events=5000, number_of_background_events=5000,
    normalization_type=0, random_seed=42, energy_range=(0, 3000))
print(spectrum.shape)  # (1024, 2): energy centers in keV, spectrum values

Normalization: 0 raw counts; 1 counts/s (set acquisition_time_s); 2 unit area. get_spectrum_dataframe returns Energy_keV, Signal_counts, Background_counts, Total_counts, Total_norm.

The included datasets come from the uploaded archive's data_lite directory. If the complete original datasets are required, replace the six CSVs under spectrum_builder/data/ before building/publishing. The two distributions spectrum-builder and spectrum-builder-db must not be installed together in their original forms because both own the spectrum_builder Python module. To retain the Streamlit UI, refactor its distribution to depend on this database package without bundling the core module twice.

Metadata

Release files for spectrum-builder-db 1.0.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for spectrum-builder-db 1.0.7
File Size Uploaded Provenance
spectrum_builder_db-1.0.7.tar.gz 8.2 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for spectrum-builder-db 1.0.7
File Interpreter ABI Platform
spectrum_builder_db-1.0.7-py3-none-any.whl Python 3 none any Details

Total release size: 17.5 kB

Release files / spectrum_builder_db-1.0.7.tar.gz

Download URL spectrum_builder_db-1.0.7.tar.gz
Size 8.2 kB
Tags Source
SHA-256 checksum
How to use checksums
9290b463043727ed7e313a2e1e90f392563ed067275f6a56abd2e3dd706c1f4f
BLAKE2b-256 checksum
How to use checksums
ad5ac724108f4bdfa6905b71e87e195387e812872c91c04e2f2dd52cfd00bd32
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / spectrum_builder_db-1.0.7-py3-none-any.whl

Download URL spectrum_builder_db-1.0.7-py3-none-any.whl
Size 9.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
23fc3414190c4bdb73fb070753de9c3b7f8feb87417bae51cd1ea282f42a4457
BLAKE2b-256 checksum
How to use checksums
5b05b730c8a5e11c5edfae5a10c2ea97b0703d8049ee5378c9a56ac077ed4203
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for spectrum-builder-db 1.0.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

This release

1.0.7 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page