Skip to main content

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 C. Hernalsteens 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


Download files

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

Source Distribution

pybdsim-3.0.1.tar.gz (3.5 MB view details)

Uploaded Source

Built Distribution

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

pybdsim-3.0.1-py3-none-any.whl (200.2 kB view details)

Uploaded Python 3

File details

Details for the file pybdsim-3.0.1.tar.gz.

File metadata

  • Download URL: pybdsim-3.0.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.2

File hashes

Hashes for pybdsim-3.0.1.tar.gz
Algorithm Hash digest
SHA256 4dcfc83f2b95dd82cab7390f16bf8a0b7ddf9bc0bafedb964e533ba48dd09eea
MD5 a7d5485ea12574e94e22ba409a8c5d34
BLAKE2b-256 ecf252d33ebeea26154a022eb457760fb37a1a25d4980dbc1169747eb284d203

See more details on using hashes here.

File details

Details for the file pybdsim-3.0.1-py3-none-any.whl.

File metadata

  • Download URL: pybdsim-3.0.1-py3-none-any.whl
  • Upload date:
  • Size: 200.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for pybdsim-3.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2677f1f4c6759d82a390fbea09f7bcd95f39a2dff289d8165a61e4b8b7a6ee02
MD5 1888edecdf6a816ff2c6d6fec47baafc
BLAKE2b-256 c6b86c473c14c2082c43087f4a2c04caf4a4e5cc35a0a81f28375a8bdd59f9ea

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