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.2.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.2.0
File Size Uploaded Provenance Actions
spectra_ui-12.2.2.0.tar.gz 5.4 MB Without provenance Details for spectra_ui-12.2.2.0.tar.gz

Built distributions (wheels)

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

Total release size: 38.1 MB

Release files / spectra_ui-12.2.2.0.tar.gz

Download URL spectra_ui-12.2.2.0.tar.gz
Size 5.4 MB
Tags Source
SHA-256 checksum
How to use checksums
8d9af24ce2f2269ffea0b22e38d27c468be1dd46a2270f0701be29644308aea0
BLAKE2b-256 checksum
How to use checksums
250270898eb03604e5db3c92ca8e8d17b2a1016de3eab1264d72a3e341ff4037
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.0-py3-none-win_amd64.whl

Download URL spectra_ui-12.2.2.0-py3-none-win_amd64.whl
Size 10.3 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
e855bb0b1fea4bcb667bdecf4f8786c925b5f127bde377a762931261ff9834f3
BLAKE2b-256 checksum
How to use checksums
c0a121b0e6fd1184cfeaa8cd55e48c7f67fcb24636707858a5ae9da2196e81ff
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.0-py3-none-macosx_14_0_x86_64.whl

Download URL spectra_ui-12.2.2.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
85dd18bb799fec84d2a14726f0abd394c45883213e490a80748bfa5989194731
BLAKE2b-256 checksum
How to use checksums
a275b07dc1443ed92f090d9940f931f52107d7d32459b95744b332fe91fed20e
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.2.0-py3-none-macosx_14_0_arm64.whl

Download URL spectra_ui-12.2.2.0-py3-none-macosx_14_0_arm64.whl
Size 10.7 MB
Tags Python 3 macOS 14.0+ ARM64
SHA-256 checksum
How to use checksums
b7e788d3bc2821e6a77a30a497077a1ec2d5adec4c3ba9042bb3e7f0ae9bd3e5
BLAKE2b-256 checksum
How to use checksums
f5546f1e380673c5ef4d772c62361ab663e26b6a4b215493cd80e05094b7f0ab
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.2.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