Skip to main content

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

MIT

Metadata

Release files for spectra-ui 12.2.1.0

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

Source distribution (sdist)

Source distribution for spectra-ui 12.2.1.0
File Size Uploaded Provenance Actions
spectra_ui-12.2.1.0.tar.gz 5.4 MB Without provenance Details for spectra_ui-12.2.1.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for spectra-ui 12.2.1.0
File Interpreter ABI Platform Actions
spectra_ui-12.2.1.0-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for spectra_ui-12.2.1.0-py3-none-win_amd64.whl
spectra_ui-12.2.1.0-py3-none-macosx_14_0_x86_64.whl Python 3 none macOS 14.0+ x86-64 Details for spectra_ui-12.2.1.0-py3-none-macosx_14_0_x86_64.whl
spectra_ui-12.2.1.0-py3-none-macosx_14_0_arm64.whl Python 3 none macOS 14.0+ ARM64 Details for spectra_ui-12.2.1.0-py3-none-macosx_14_0_arm64.whl

Total release size: 38.1 MB

Release files / spectra_ui-12.2.1.0.tar.gz

Download URL spectra_ui-12.2.1.0.tar.gz
Size 5.4 MB
Tags Source
SHA-256 checksum
How to use checksums
97746889c3f1833089628989885839d2fa647e1350a188fb075f5295d9926888
BLAKE2b-256 checksum
How to use checksums
51307c2d5585318a46bf22f0434059e50c4972d73da2b2fa45915a671c49fae0
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.1.0-py3-none-win_amd64.whl

Download URL spectra_ui-12.2.1.0-py3-none-win_amd64.whl
Size 10.3 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
9754acaeccfa666cfaa7a7a8e5d8af1669887f1886590f5a90ddf446cafca621
BLAKE2b-256 checksum
How to use checksums
6d3b4a934e5ecb22d94ba5de79e2d7a286954ec574126c275064ec56f58e42c7
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.1.0-py3-none-macosx_14_0_x86_64.whl

Download URL spectra_ui-12.2.1.0-py3-none-macosx_14_0_x86_64.whl
Size 11.9 MB
Tags Python 3 macOS 14.0+ x86-64
SHA-256 checksum
How to use checksums
7bf0d45d33d5341681b40e85c35656d9b18b397af7822d06f2657367ae654cab
BLAKE2b-256 checksum
How to use checksums
a53693ce8ebf3ae7f34ac474cd2fd68d0116c852311123f2906f7c9a168a9e71
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.5

Release files / spectra_ui-12.2.1.0-py3-none-macosx_14_0_arm64.whl

Download URL spectra_ui-12.2.1.0-py3-none-macosx_14_0_arm64.whl
Size 10.6 MB
Tags Python 3 macOS 14.0+ ARM64
SHA-256 checksum
How to use checksums
4451d926d88d7412915c4b1267ad4306348333265fc3bdfc6db4f3fe803dfd27
BLAKE2b-256 checksum
How to use checksums
6886f2fc1ac3dea24fa3372d4301a31d9b38a141cce64cc530f5e2870ec58917
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.2

Security for spectra-ui 12.2.1.0

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.

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