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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pybdsim-3.0.0.tar.gz
Algorithm Hash digest
SHA256 bd3a47638d55b4fc71a0f3f32c94d8ced3b2dd80c27339a83af4f0bf0336dbb1
MD5 d975cbea0520e39d12196ef5e9986994
BLAKE2b-256 ee3ef34ddd336d6dcf70a949fb84e711475ee4647fac1fc00f23787e00caed96

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pybdsim-3.0.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3433a778c060ee21427e727d60b64f7bd69499a1b1d72fcaff31981de6c4d73b
MD5 fb744f5aaab5314afce7bb22a75c2a7c
BLAKE2b-256 833fa7b55d5a8754091653ec3d1347d8570988f701ace8d7dae90d3893239eef

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