Geometry package for high energy physics (Geant4, Fluka)
Project description
pyg4ometry
Python code for rapid creation and conversion of radiation transport Monte Carlo (Geant4 and Fluka) geometries.
Installing from PyPI
> pip install pyg4ometry
[!NOTE] Most dependencies are available from pip but you will need to install OpenCASCADE cgal, mpfr, gmp, ROOT. Find here installers for Ubuntu and MacOS.
Building
> git clone https://github.com/g4edge/pyg4ometry.git
> cd pyg4ometry
> pip install . # add --editable for a version which you can edit
[!NOTE] If you update your Git clone and the pybind11 C++ has changes you will need to reinstall and thus trigger a rebuild.
Manual
Online manual available at https://pyg4ometry.readthedocs.io
Developer commands (for detailed developer notes see readthedocs)
- Building the manual
pip install '.[docs]'
to install docs building dependenciescd pyg4ometry/docs
make
<your browser> build/html/index.html
to view the docs
- Running tests
pip install '.[test]'
to install test running dependenciespytest
- Git commit
- pre-commit
pre-commit install
to setup pre-commit in source dir (only once)pre-commit run --all-files
run pre-commit locallypre-commit run --all-files black
run only black
- messages
- Start commit message with
submodule : (type of change) detailed notes
- e.g
pycgal : (extra functionality) more 2d mesh processing
- Start commit message with
- pre-commit
- Pull requests
- PR messages should just explain the change in a concise way as they will form part of the change log
- e.g
FLUKA region viewer
- e.g
- Update the CHANGELOG.md file for generating the release notes
- PR messages should just explain the change in a concise way as they will form part of the change log
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
pyg4ometry-1.2.3.tar.gz
(6.2 MB
view hashes)
Built Distributions
Close
Hashes for pyg4ometry-1.2.3-cp312-cp312-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 670440e650213f28a13dd4f52c0706fe332b6c410739f1ad10d9f4aa61fa3cf3 |
|
MD5 | bad3de14939ab8621cb7444ee2e36703 |
|
BLAKE2b-256 | b11dbe6b746e989466fd6e0fba034b9aa1e552e4f9ea6f51b50275360abe260f |
Close
Hashes for pyg4ometry-1.2.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5db1776e4417445b3cd7b7e5ecaab11b3bc809ed9868ba3154cec6ad74edcb6e |
|
MD5 | cf10af20513b9fd4773d8a2495a0b023 |
|
BLAKE2b-256 | 384ca645a9da56c0cb196e58b9db975acbd61e89aa47b5aa95274744e79277d6 |
Close
Hashes for pyg4ometry-1.2.3-cp312-cp312-macosx_14_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d8612bdfeb53b8448bfdbacb5079b5ff12dd13ef099d23da2ae4d1d225f163b6 |
|
MD5 | 66e14e7828db5edd92d9000dfd48eeb3 |
|
BLAKE2b-256 | babb90ffdbc0f4865297d5e6dda59d8e37039f10f0c9999b55fa30918c9693ea |
Close
Hashes for pyg4ometry-1.2.3-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c469420f595716d7d504a9d4270d9725ff1ee2af33411b468ab26ea451d2923f |
|
MD5 | b239b9a59c813420ce24afa73511af99 |
|
BLAKE2b-256 | d2ffef26069abd60318512ab9209996a31363c6f937a833447acff0671c910ba |
Close
Hashes for pyg4ometry-1.2.3-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c2afa1987df0474df1097d36ab0d8fc383dc7507c7dbae7217d3bf6d7b4ccac |
|
MD5 | 6d5333cf3c3329cd161a9647d2e5c7b7 |
|
BLAKE2b-256 | 2a25d5dea6ba982cb1a6f644382cf20cd8a88684e9c549f9e893f1877274e03a |
Close
Hashes for pyg4ometry-1.2.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2c3095e0c0bc35f5c2c9cbae4d738a8650ec55bff651011f7529c1e893e38e24 |
|
MD5 | f51d06ddcf0da54d0790733756442cf8 |
|
BLAKE2b-256 | 2e905f14721a2ea08def3fc37b2e07f7ca5c21cbc94caf760256fa74d1820ce4 |
Close
Hashes for pyg4ometry-1.2.3-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f324ae3a47c891d3a0951899825d7265c1c37dd663c960c66137eb81d12a0e20 |
|
MD5 | ebb98ff003b46f876f4d593944e98619 |
|
BLAKE2b-256 | f8efba690ea49ebd5c3dd4739bd149c5bf40a001872003ea66385e39279230a0 |
Close
Hashes for pyg4ometry-1.2.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 944a8501df5cfe29a2f459f59d8db904da487a2d85f86da4311faa33b077415f |
|
MD5 | b31385f74b6329208aa5f715f478fc68 |
|
BLAKE2b-256 | 5d47eafb23067cafd99271e796009d84878306d17d629e05da92f4986df4343b |
Close
Hashes for pyg4ometry-1.2.3-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 96e8e9f3a0550a69fb34dd69d8149d3528b0912d1b013f94a8f2340bdf9ffe32 |
|
MD5 | 4a36d0ed1c54e3a5d2c0ccf3fb651152 |
|
BLAKE2b-256 | d9578fd664397295a4157698a0b22b99e5840933ec5b86aab2441271cd79fbd0 |
Close
Hashes for pyg4ometry-1.2.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6aef03e3abca6d3eb4bc900c5b64d81cf55246be4bc38d735113d5852ac3e07f |
|
MD5 | 061a1540115473fc357e5c71f4e2b122 |
|
BLAKE2b-256 | 0e9410384643b78c98eb177fd4ddd6e1acef2e1a562d477f353db8d677b8f211 |
Close
Hashes for pyg4ometry-1.2.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 15be950c855b3964f017f8b03bbb04c3e1779c9a3b441c76c8003ec25433b3ea |
|
MD5 | 00a86ea4985c53d27537ff1a40f53e52 |
|
BLAKE2b-256 | 232b9fa6985b9f10d849c5400e4a48ff5172c240a3d1e7dd4983b536f6df3468 |