Calzone

Calzone (CALorimeter ZONE) is a Python package built on top of Geant4. It was developed in the context of geosciences with the objective of studying the emission of radioactivity from volcanoes (Terray et al., 2020), and in particular to simulate the response of gamma spectrometers deployed in the field. To this end, Calzone was developed in conjunction with Goupil (Niess et al., 2024), a backward gamma transport engine, and is interoperable with the latter. Yet, both packages can be used entirely independently, if necessary.
Please refer to the online documentation and the examples for further information.
Installation
Binary distributions of Calzone are available from PyPI, e.g. as
python -m pip install calzone
In addition, Calzone requires 2 GB of Geant4 data tables, which are not included in the Python package. Once Calzone has been installed, these can be downloaded as
python -m calzone download
Please refer to the documentation for alternative installation methods.
Quick start
# file: geometry.toml
[Environment]
sphere = 1E+05 # cm
material = "G4_WATER"
[Environment.Source]
sphere = 1E+02 # cm
material = "G4_WATER"
[Environment.Source.Detector]
cylinder = { length = 5.1, radius = 2.55 } # cm
material = "G4_SODIUM_IODIDE"
role = "record_deposits"
# file: run.py
import calzone
# Instanciate a simulation engine (using a TOML geometry).
# Requires installing `tomli` for Python < 3.11.
simulation = calzone.Simulation("geometry.toml")
# Generate primary particles.
source = simulation.geometry.find("Source")
energy = 1.0 # MeV
primaries = simulation.particles() \
.pid("gamma") \
.energy(energy) \
.inside(source) \
.generate(1000)
# Run the simulation and fetch deposits.
detector = simulation.geometry.find("Detector")
deposits = simulation \
.run(primaries) \
.deposits[detector.path]
License
The Calzone source is distributed under the GNU LGPLv3 license. See the provided LICENSE and COPYING.LESSER files. Additionaly, Calzone uses software developed by Members of the Geant4 Collaboration, which is under a specific license.
Metadata
Release files for calzone 1.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| calzone-1.2.2.tar.gz | 120.2 kB | Details |
Built distributions (wheels)
| File | Reset | |||
|---|---|---|---|---|
| calzone-1.2.2-cp37-abi3-win_arm64.whl | CPython 3.7 | abi3 | Windows ARM64 | Details |
| calzone-1.2.2-cp37-abi3-win_amd64.whl | CPython 3.7 | abi3 | Windows x86-64 | Details |
| calzone-1.2.2-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl | CPython 3.7 | abi3 | Linux glibc 2.17+ x86-64 | Details |
| calzone-1.2.2-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl | CPython 3.7 | abi3 | Linux glibc 2.17+ ARM64 | Details |
| calzone-1.2.2-cp37-abi3-macosx_11_0_x86_64.whl | CPython 3.7 | abi3 | macOS 11.0+ x86-64 | Details |
| calzone-1.2.2-cp37-abi3-macosx_11_0_arm64.whl | CPython 3.7 | abi3 | macOS 11.0+ ARM64 | Details |
Total release size: 112.4 MB
Release files / calzone-1.2.2.tar.gz
| Download URL | calzone-1.2.2.tar.gz |
|---|---|
| Size | 120.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
62ce840ee1230146d84ceb26578fc23b5e0d1a0b203c956189540f27f3a546e4
|
|
BLAKE2b-256 checksum How to use checksums |
35d9c8d606fbb5f8423fdd2f8746a0f600d35c6416c1b63f5a6b316f98b959ec
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 3, 2026.
Transparency logRelease files / calzone-1.2.2-cp37-abi3-win_arm64.whl
| Download URL | calzone-1.2.2-cp37-abi3-win_arm64.whl |
|---|---|
| Size | 17.2 MB |
| Tags | CPython 3.7 Windows ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
1862d420aee84824c87b0e751640090d1cd28026584ed16e2851900d627dc0b7
|
|
BLAKE2b-256 checksum How to use checksums |
d6bd81d924b348a10d9bec08ceaf679bfe9bb62d8bb8b934948da4604dab85b4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 3, 2026.
Transparency logRelease files / calzone-1.2.2-cp37-abi3-win_amd64.whl
| Download URL | calzone-1.2.2-cp37-abi3-win_amd64.whl |
|---|---|
| Size | 15.9 MB |
| Tags | CPython 3.7 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
21d1686b78c3e0f8259081dfd020c4ee0f24baec1bd3604cd6b72d53b3983b32
|
|
BLAKE2b-256 checksum How to use checksums |
e9da8bd540c2bff77945a478fe54d627100fa1ba9666518a76069c63b607b48d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 3, 2026.
Transparency logRelease files / calzone-1.2.2-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | calzone-1.2.2-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 21.5 MB |
| Tags | CPython 3.7 Linux glibc 2.17+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
f8bc5cab2c0f530b08ffd54cab61df7df161fd4d7c1f99caa33fb066ad004b5a
|
|
BLAKE2b-256 checksum How to use checksums |
6a4c2fc4b281d2ed5e35fc4f7f4f881525bcdc0998dddc3dd98c5116f418f16b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 3, 2026.
Transparency logRelease files / calzone-1.2.2-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | calzone-1.2.2-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 20.5 MB |
| Tags | CPython 3.7 Linux glibc 2.17+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
7d7b7cc46a99837fb4b1ecdc818d82b031d3819fcf767fabc4d9cec6e13adf26
|
|
BLAKE2b-256 checksum How to use checksums |
7257a8eba727857f6c596a73d5eaceef38612d97893a60daeff640f31b34b905
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 3, 2026.
Transparency logRelease files / calzone-1.2.2-cp37-abi3-macosx_11_0_x86_64.whl
| Download URL | calzone-1.2.2-cp37-abi3-macosx_11_0_x86_64.whl |
|---|---|
| Size | 19.3 MB |
| Tags | CPython 3.7 abi3 macOS 11.0+ x86-64 |
|
SHA-256 checksum How to use checksums |
86d56adfcfb6ff32be59d5832da7ad0648ecbfb9e9746271667c6827db27b3e7
|
|
BLAKE2b-256 checksum How to use checksums |
adb577ac50adc834450e0bc4b6f56af6c0e34625aab30878c9f5fce4deeb60da
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 3, 2026.
Transparency logRelease files / calzone-1.2.2-cp37-abi3-macosx_11_0_arm64.whl
| Download URL | calzone-1.2.2-cp37-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 17.9 MB |
| Tags | CPython 3.7 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
bd20491030068484d8c9527c0a092531414ad370a9afc0f8e29d57b9c3fb6aae
|
|
BLAKE2b-256 checksum How to use checksums |
de00d47960136061ef7727ba53fc7ec9f6e501bec53bf940792ad5a9d07a77cf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 3, 2026.
Transparency log