Skip to main content

SIMPLEX User Interface to Python

Project description

simplex-ui

simplex-ui is a Python library to interface the FEL simulation code SIMPLEX.

Details

For details, visit the simplex-ui homepage

Installation

Use the package manager to install simplex-ui.

pip install simplex-ui (--user)

Usage

import simplex

# launch SIMPLEX: interactive mode, HTML source in CDN
simplex.Start(mode="i")

# open a parameter file "/path/to/parameter_file"
simplex.Open("/path/to/parameter_file")

# start calculation: output file will be /path/to/data_dir/sample.json
simplex.StartSimulation(folder="/path/to/data_dir", prefix="sample", serial=-1)

# plot gain curve (growth of the pulse energy) in the Post-Processor
simplex.PostProcess.PlotGainCurve("Pulse Energy")

# quit SIMPLEX
simplex.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

simplex-ui-3.1.0.2.zip (5.7 MB view hashes)

Uploaded Source

Built Distributions

simplex_ui-3.1.0.2-py3-none-win_amd64.whl (7.9 MB view hashes)

Uploaded Python 3 Windows x86-64

simplex_ui-3.1.0.2-py3-none-macosx_14_0_x86_64.whl (8.1 MB view hashes)

Uploaded Python 3 macOS 14.0+ x86-64

simplex_ui-3.1.0.2-py3-none-macosx_14_0_arm64.whl (7.8 MB view hashes)

Uploaded Python 3 macOS 14.0+ ARM64

Supported by

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