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.5.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.5.1-py3-none-any.whl (218.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pybdsim-3.5.1.tar.gz
Algorithm Hash digest
SHA256 01de695a786b7cad7f4794b9b8869954a132790bb9f1ad841ddb44a2387b78e5
MD5 4fadbac0af398eaf1839f29fd6d4aa08
BLAKE2b-256 b2f2de9e5514ce4018b45cfd123780e6176a15770ab6911c06934f6caee1f1a2

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pybdsim-3.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3cb1612e875d40e90c5afb2cab28e625fbb9621af898c83ed5131745b18a976d
MD5 576c2a0e5b3a1f6ccd38f2de446656d9
BLAKE2b-256 4c24b2a71b16197faa681e1f5de1bb97bd7aa991b5258b4a77e4edf7b641743e

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