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
spectra.Start(mode="i")
spectra.Open("/path/to/parameter_file")
spectra.SelectCalculation("far", "energy", "fdensa")
spectra.StartCalculation(folder="/path/to/data_dir", prefix="sample", serial=-1)
spectra.PostProcess.Plot("GA. Brilliance")
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
MIT