Skip to main content

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

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

spectra_ui-12.2.0.0.tar.gz (5.3 MB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

spectra_ui-12.2.0.0-py3-none-win_amd64.whl (10.3 MB view details)

Uploaded Python 3Windows x86-64

spectra_ui-12.2.0.0-py3-none-macosx_14_0_x86_64.whl (11.9 MB view details)

Uploaded Python 3macOS 14.0+ x86-64

spectra_ui-12.2.0.0-py3-none-macosx_14_0_arm64.whl (10.7 MB view details)

Uploaded Python 3macOS 14.0+ ARM64

File details

Details for the file spectra_ui-12.2.0.0.tar.gz.

File metadata

  • Download URL: spectra_ui-12.2.0.0.tar.gz
  • 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

Hashes for spectra_ui-12.2.0.0.tar.gz
Algorithm Hash digest
SHA256 1306071eb4b585a1f39e82d59081bf99bcfdeff6960c60983287c951293eb6a0
MD5 a2429699e180905c7826c69cf8198521
BLAKE2b-256 e067d2c2eb51c0291cabd24dc385c41cc0784adbe5123a988b9b3ad3871ebae1

See more details on using hashes here.

File details

Details for the file spectra_ui-12.2.0.0-py3-none-win_amd64.whl.

File metadata

File hashes

Hashes for spectra_ui-12.2.0.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 ac7caa011b139d5e0e41bb3acca074976d7f57f9f7727f83e6456bfa6a95bf77
MD5 757fa02e48771914411342775519ed22
BLAKE2b-256 21ecc40295d5da5db11f956e96b95647359fcc82d737e992dc1dfd5e6af17fe7

See more details on using hashes here.

File details

Details for the file spectra_ui-12.2.0.0-py3-none-macosx_14_0_x86_64.whl.

File metadata

File hashes

Hashes for spectra_ui-12.2.0.0-py3-none-macosx_14_0_x86_64.whl
Algorithm Hash digest
SHA256 dd2f5986f60c2b235af5f2acba822bdbccc9dc53bc06cd595bf0d0dcc4a3257c
MD5 c7a3b4e4c1bf6d38683d40b172abf831
BLAKE2b-256 b9c09dfabe7e3b3cc18063188cd8f5b2af3cf3ca31fd6675637c147d7947e860

See more details on using hashes here.

File details

Details for the file spectra_ui-12.2.0.0-py3-none-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for spectra_ui-12.2.0.0-py3-none-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 62d03b75cdba7413feb0ff7a28dc4d62b8aee84e769d971d95824e8ed738a869
MD5 31b52bfa88aacd830fa7a57b46382dbf
BLAKE2b-256 3a87b13ccaccd7bb0a4e799fd8484c594721dded01ec5695736cd025f26e89b1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page