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 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


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.6.0.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.6.0-py3-none-any.whl (219.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

Hashes for pybdsim-3.6.0.tar.gz
Algorithm Hash digest
SHA256 29abb707e3c7585a68589cdc03da8e97a127db67b9d568da73d71e9e1ab81784
MD5 8fbdf05e4b76188b54ede1bcab7f4b11
BLAKE2b-256 8e6fb93f5c13773ee6fd8916ddbb02c44dc034b3d6ff8cb644513d4e667a1822

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pybdsim-3.6.0-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

Hashes for pybdsim-3.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3b34c42f8b09ea0226d9c5d8f38239484cb95dcbe2f339e340260c2a072495e2
MD5 73dac28014ecf94be901c993613317bd
BLAKE2b-256 1e62d0652ec02924aa1da20c6a3aaf9ce1b95daa0d790450e97aa43612131f4b

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