GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing pypi.org — pygemc pygemc 0.5.0Python API for GEMC geometry definition and output analysis pip install pygemc pygemc
The package is installed with pip or as part of the GEMC source build. It also ships preinstalled in the GEMC
Docker images on Docker Hub (and Features
InstallationStable PyPI InstallUse a Python virtual environment for direct /opt/homebrew/bin/python3 -m venv ~/venv/pygemc
source ~/venv/pygemc/bin/activate
python -m pip install --upgrade pip
Install python -m pip install pygemc
Optional ROOT-file analysis dependencies: python -m pip install "pygemc[root]"
Install with GEMCWhen GEMC is built from source, pygemc available in your scripts without any activation step or separate pip install and gemc and Python tools are available: gemc -v
gemc-system-template --help
gemc-sqlite --help
gemc-analyzer --help
QuickstartCreate a detector template: gemc-system-template -s counter
cd counter
./counter.py
The generated system contains:
Run with PyVista visualization: ./counter.py -pv
Export a VTK.js scene: ./counter.py -pvvtk counter -pvz 0.25
Use a light flat background for documentation exports: ./counter.py -pvvtk counter -pvbg "0.92 0.92 0.98" -pvbgt none
Run the generated simulation with GEMC when the compiled gemc counter.yaml
Analyze output: gemc-analyzer counter_t0_digitized.csv totEdep --bins 50
The quantities available to plot are the numeric columns of the loaded file, so they are only known after the
data is read — they do not appear in gemc-analyzer counter_t0_digitized.csv
gemc-analyzer counter_t0_digitized.csv --list
Upcoming in the next release: true-information CSV files containing Geometry APITypical geometry scripts create a configuration and publish volumes/materials to it: from pygemc import GMaterial, GVolume, autogeometry
cfg = autogeometry("examples", "counter")
gas = GMaterial("methaneGas")
gas.description = "methane gas CH4 0.000667 g/cm3"
gas.density = 0.000667
gas.addNAtoms("C", 1)
gas.addNAtoms("H", 4)
gas.publish(cfg)
flux = GVolume("flux_box")
flux.description = "air flux box"
flux.make_box(40.0, 40.0, 2.0)
flux.set_position(0, 0, 100)
flux.material = "G4_AIR"
flux.color = "3399FF"
flux.style = 1
flux.digitization = "flux"
flux.set_identifier("box", 2)
flux.publish(cfg)
Placement convention
Most new GEMC3 geometry can use the default gvolume.g4placement_type = "passive"
This field is written to SQLite geometry databases. Existing SQLite databases are upgraded with the missing column when a geometry script publishes new rows. Common command-line options accepted by geometry scripts:
PyVista VisualizationPyVista support is central to
Open the linked interactive PyVista scenes generated from the GEMC examples. GitHub README pages cannot embed Command-Line Tools
TestsRun the standalone Python tests: pytest
pytest tests/test_analyzer.py
pytest tests/test_cli.py
pytest tests/test_gconfiguration_yaml.py
pytest tests/test_geometry.py
pytest -v
pytest -k "sqlite"
The tests cover analyzer plotting, CLI behavior, YAML-driven PyVista configuration, and geometry database
generation. They intentionally do not require Geant4 or a compiled Project Layout
Documentation
ContributingKeep patches focused and run the relevant pytest targets before opening a pull request. If a change affects the integrated GEMC build, also run the parent repository Meson tests for the affected examples or modules. License
Project linksData verified by PyPI on Oct 22, 2026
Data provided by the project maintainers, verified at the time the release was uploaded to PyPI.
Key datesPyPI dataData sourced directly from PyPI's database.
1 maintainerPyPI dataData sourced directly from PyPI's database.
CreditsAuthor: Maurizio Ungaro GitHub StatisticsData verified by PyPI on Oct 22, 2026The GitHub source repository was provided by the project maintainers and verified by PyPI at the time of upload. Stars, forks, and open issues/PRs are derived from that repository and have not been independently verified.
ProvenanceData verified by PyPI on Oct 22, 2026Data provided by the project maintainers and verified by PyPI at the time of upload.
LicenseApache Software License (Apache License) RequiresPython >=3.10 Provides Extra
Tags
Classifiers
MetadataProject linksData verified by PyPI on Oct 22, 2026
Data provided by the project maintainers, verified at the time the release was uploaded to PyPI.
Key datesPyPI dataData sourced directly from PyPI's database.
1 maintainerPyPI dataData sourced directly from PyPI's database.
CreditsAuthor: Maurizio Ungaro GitHub StatisticsData verified by PyPI on Oct 22, 2026The GitHub source repository was provided by the project maintainers and verified by PyPI at the time of upload. Stars, forks, and open issues/PRs are derived from that repository and have not been independently verified.
ProvenanceData verified by PyPI on Oct 22, 2026Data provided by the project maintainers and verified by PyPI at the time of upload.
LicenseApache Software License (Apache License) RequiresPython >=3.10 Provides Extra
Tags
Classifiers
Release files for pygemc 0.5.0For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation. Source distribution (sdist)
Built distribution (wheel)
Total release size: 197.0 kB Release files / pygemc-0.5.0.tar.gz
ProvenanceProvenance 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 AttestationPyPI verified that this artifact, at this checksum, originated from the publisher listed below. Signed by GitHub Actions, verified by PyPI on Oct 22, 2026. Transparency logIdentity
Workflow
Artifact
Release files / pygemc-0.5.0-py3-none-any.whl
ProvenanceProvenance 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 AttestationPyPI verified that this artifact, at this checksum, originated from the publisher listed below. Signed by GitHub Actions, verified by PyPI on Oct 22, 2026. Transparency logIdentity
Workflow
Artifact
Security for pygemc 0.5.0ProvenanceProvenance 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. Full provenanceBoth files in this release have been uploaded with provenance metadata.
Select from 2 files
No files match the current filters. Reset filters
Attestation for pygemc-0.5.0.tar.gzPyPI Publish AttestationPyPI verified that this artifact, at this checksum, originated from the publisher listed below. Signed by GitHub Actions, verified by PyPI on Oct 22, 2026. Transparency logIdentity
Workflow
Artifact
Attestation for pygemc-0.5.0-py3-none-any.whlPyPI Publish AttestationPyPI verified that this artifact, at this checksum, originated from the publisher listed below. Signed by GitHub Actions, verified by PyPI on Oct 22, 2026. Transparency logIdentity
Workflow
Artifact
A note on package securityPyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package. To learn more about protecting yourself from malicious actors, visit our package security documentation. Release history Release notifications | RSS feed | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |