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.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| spectrum_builder_db-1.0.8.tar.gz | 76.4 MB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| spectrum_builder_db-1.0.8-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 153.0 MB
Release files / spectrum_builder_db-1.0.8.tar.gz
| Download URL | spectrum_builder_db-1.0.8.tar.gz |
|---|---|
| Size | 76.4 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a28868bd2847692f9449bec13b5473d6a7e2d33839102104865c99f84b244759
|
|
BLAKE2b-256 checksum How to use checksums |
5e8b7ed427cef5bd63af95f59c9ed6e289091faed5bcc3100a087eda540a06c2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.5
|
Release files / spectrum_builder_db-1.0.8-py3-none-any.whl
| Download URL | spectrum_builder_db-1.0.8-py3-none-any.whl |
|---|---|
| Size | 76.6 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d84e4d3b49ae75611f0bceb28b987bdd0dbb13fbc3f43ad2689bf158f82c4827
|
|
BLAKE2b-256 checksum How to use checksums |
4d3e1604dbd6576ec1964c1bed3429a2e6a81a7960a807cd1fd38154119a29a2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.5
|
Security for spectrum-builder-db 1.0.8
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.