SPECTRA User Interface to Python
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file spectra-ui-12.1.4.0.zip.
File metadata
- Download URL: spectra-ui-12.1.4.0.zip
- Upload date:
- Size: 5.3 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2ca5a5faaaac7c053ea4759a1f37506acfe1453063dcf5054fb0d02dd905c90b
|
|
| MD5 |
7e66765590f7733ea7edcc528bf09fbb
|
|
| BLAKE2b-256 |
cfc2153ca7513c3085535728a87848e9bba4662b98498ddf86adf356c0e3fb18
|
File details
Details for the file spectra_ui-12.1.4.0-py3-none-win_amd64.whl.
File metadata
- Download URL: spectra_ui-12.1.4.0-py3-none-win_amd64.whl
- Upload date:
- Size: 10.0 MB
- Tags: Python 3, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a6081daf96354bb50839ebe9ac2d72b9c0863985e63914ca10052e1262b0a2d1
|
|
| MD5 |
e62ec417fd4145d140a60523f712d06c
|
|
| BLAKE2b-256 |
222aa11e7d3ab9fb343c2fbccf5764f2f826b6b598830e0d06e65e9b8813b7a7
|
File details
Details for the file spectra_ui-12.1.4.0-py3-none-macosx_14_0_x86_64.whl.
File metadata
- Download URL: spectra_ui-12.1.4.0-py3-none-macosx_14_0_x86_64.whl
- Upload date:
- Size: 11.5 MB
- Tags: Python 3, macOS 14.0+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
390ba04beedaacc6cbc3a4503c60635e40a7bc7371637392432cf4b486be06be
|
|
| MD5 |
99d5922bb862c210882404988f0c05c2
|
|
| BLAKE2b-256 |
9426830d8d47380cc30d02048707dfdf9374c75a5f4dd432c3aad442ff872df0
|
File details
Details for the file spectra_ui-12.1.4.0-py3-none-macosx_14_0_arm64.whl.
File metadata
- Download URL: spectra_ui-12.1.4.0-py3-none-macosx_14_0_arm64.whl
- Upload date:
- Size: 10.3 MB
- Tags: Python 3, macOS 14.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
346bef3d73a3560d30bbfb2af2b5fcbaf09979f9e24da82bcca96e2b14bef79a
|
|
| MD5 |
6a926ca4cc5f3d01de5a85c5eb0fd408
|
|
| BLAKE2b-256 |
941316017d01894f05d3f9432f55bb00112d56d5eec69ee0835157828d3a8efa
|