spectra-ui
spectra-ui is a Python library to interface the synchrotron radiation calculation code SPECTRA.
Details
For details, visit the spectra-ui homepage
Installation
Use the package manager to install spectra-ui.
pip install spectra-ui (--user)
Usage
import spectra
# launch SPECTRA: interactive mode, HTML source in CDN
spectra.Start(mode="i")
# open a parameter file "/path/to/parameter_file"
spectra.Open("/path/to/parameter_file")
# select calculation: Far Field & Ideal Condition::Energy Dependence::Angular Flux Density
spectra.SelectCalculation("far", "energy", "fdensa")
# start calculation: output file will be /path/to/data_dir/sample.json
spectra.StartCalculation(folder="/path/to/data_dir", prefix="sample", serial=-1)
# plot Gaussian-Approximated Brilliance in the Post-Processor
spectra.PostProcess.Plot("GA. Brilliance")
# quit SPECTRA
spectra.Exit()
Requirement
You need to install a web browser (Chrome, Edge, or Firefox; Safari is not upported) to show parameter lists, graphical plots, and calculation progress.
License
Metadata
Release files for spectra-ui 12.2.2.1
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 | Actions |
|---|---|---|---|---|
| spectra_ui-12.2.2.1.tar.gz | 5.4 MB | Without provenance | Details for spectra_ui-12.2.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| spectra_ui-12.2.2.1-py3-none-win_amd64.whl | Python 3 | none | Windows x86-64 | Details for spectra_ui-12.2.2.1-py3-none-win_amd64.whl |
Total release size: 15.6 MB
Release files / spectra_ui-12.2.2.1.tar.gz
| Download URL | spectra_ui-12.2.2.1.tar.gz |
|---|---|
| Size | 5.4 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5d512991da667609a73a65bd3216eb27cdf6181e8a35a98482e947b25264ec69
|
|
BLAKE2b-256 checksum How to use checksums |
12fe299cc020e6e70e39b9704d12d18040bcc268e9c94d893f50b37868e2182e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.2
|
Release files / spectra_ui-12.2.2.1-py3-none-win_amd64.whl
| Download URL | spectra_ui-12.2.2.1-py3-none-win_amd64.whl |
|---|---|
| Size | 10.3 MB |
| Tags | Python 3 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
d666d9582550ea20937ccd7c818565416bace46687940a6b4a121f1186e2fc2f
|
|
BLAKE2b-256 checksum How to use checksums |
38efa585efa20374381304e47cc9e955d924cb13d7979a430a8295fa3de1f95c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.2
|
Security for spectra-ui 12.2.2.1
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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.