Python utilities for the Monte Carlo Particle accelerator code BDSIM.
Project description
pybdsim
A python package containing both utilities for preparing and analysing BDSIM input and output as well as controlling BDSIM.
Authors
L. Nevay A. Abramov S. Alden S. Boogert M. Deniaud C. Hernalsteens F. Metzger W. Parker E. Ramoisiaux W. Shields J. Snuverink R. Tesse S. Walker
Setup
pip install pybdsim
Or from source, from the main directory:
$ make install
or for development where the local copy of the repository is used and can be reloaded with local changes:
$ make develop
Look in the Makefile for the various pip commands (e.g. for with a venv)
python
>>> import pybdsim
>>> d = pybdsim.Data.Load("output.root")
>>> eventTree = a.GetEventTree()
>>> for event in eventTree:
print(event.Summary.nTracks)
>>> dh = pybdsim.Data.Load("analysis_histograms.root")
>>> pybdsim.Plot.Histogram1D(dh.histogramspy["Event/MergedHistograms/PlossHisto"])
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pybdsim-3.6.1.tar.gz.
File metadata
- Download URL: pybdsim-3.6.1.tar.gz
- Upload date:
- Size: 3.5 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0a1907f9330baa7731458e3b7e399393e401a460d5eb8ce4c6e7e873b010d2a3
|
|
| MD5 |
6cc45826f4f9c25e5bdb14f3df7de3be
|
|
| BLAKE2b-256 |
4cb3ea145741bc718cad6861d97e63c6ea66f2bc6263eef23cc81e3b220b8ea1
|
File details
Details for the file pybdsim-3.6.1-py3-none-any.whl.
File metadata
- Download URL: pybdsim-3.6.1-py3-none-any.whl
- Upload date:
- Size: 219.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c14c61823b3a7750e4c87b9e5f7db6472ab3a50205bd898bd8b8323e5194491f
|
|
| MD5 |
2e817ffb0cd9e6496cac250e02da1aaf
|
|
| BLAKE2b-256 |
6fc2144c19a40b48f0a50d7e5249188f0ad39ce73b9a88a3b70f644ce87bc83f
|