vikshep-ingest
The Geant4 Direct Interface of Vikshep: from Geant4 output to physics answer. It reads the per-hit CSV you already export from Geant4, computes the per-event, per-layer quantities usually derived by hand in pandas, rasterizes each event onto a detector-native (phi, theta) grid, and runs two analysis recipes on deterministic wavelet-scattering features: detector calibration, and particle tagging decorrelated from a protected variable with the exact weighted distance correlation (DisCo).
pip install vikshep-ingest
On Linux (x86_64, aarch64), macOS and Windows (x86_64) this also installs the
open deterministic core,
vikshep-compute, as a
prebuilt wheel. On other platforms the recipes fall back to per-event
aggregates and say so; pip install "vikshep-ingest[scattering]" requests
the core explicitly.
Quickstart
With the synthetic sample from the repository (examples/g4_quickstart/sample.csv: 1000
events with the truth columns is_signal, true_energy and weight) or your own export in
the same shape:
# 1. CSV to rasterized grids (named by 28-character content IDs) and a manifest
vikshep-ingest g4 sample.csv --schema komal_v1 --out run/
# 2. Calibration: reconstruct the incident energy from the detector images
vikshep-recipe calibrate --features run/manifest.json --target true_energy
# 3. Tagging, decorrelated from energy with weighted DisCo
vikshep-recipe tag --features run/manifest.json \
--label is_signal --protect true_energy --weights weight --lambda 1.0
Every run writes a report and a provenance.json (VDS-1 schema) next to its
outputs, so a result can be reproduced bit for bit.
Input profiles
| Profile | Rows |
|---|---|
komal_v1 |
per-hit event_id, layer (1-3), phi, theta, momentum[, energy] |
| generic | any Geant4 ntuple export, mapped with --column-map map.json |
Malformed rows are counted and reported, never dropped silently. Extra columns with one
numeric value per event (truth labels, the incident energy, MC weights) are kept as event
columns: usable as --label, --protect, --weights or --target, never as features.
Simulated runs
Output folders of vikshep-sim, the open Geant4
runner, are read directly (each run's OID is checked against its run_summary.json):
pip install "vikshep-ingest[sim]"
vikshep-ingest sim runs/electron_5 runs/pion_5 --signal runs/electron_5 --out ana
vikshep-recipe tag --features ana/manifest.json --label is_signal --protect primary_energy_GeV
Licence
AGPL-3.0-or-later, or a commercial licence from the copyright holder: https://github.com/samvardhan03/Vikshep/blob/main/LICENSING.md
Metadata
Release files for vikshep-ingest 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| vikshep_ingest-0.4.0.tar.gz | 44.2 kB | With provenance | Details for vikshep_ingest-0.4.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| vikshep_ingest-0.4.0-py3-none-any.whl | Python 3 | none | any | Details for vikshep_ingest-0.4.0-py3-none-any.whl |
Total release size: 86.3 kB
Release files / vikshep_ingest-0.4.0.tar.gz
| Download URL | vikshep_ingest-0.4.0.tar.gz |
|---|---|
| Size | 44.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a1cd5e76a200df7ea7bc951516ebbe5ba95347d05a2742def668cb812941fcd9
|
|
BLAKE2b-256 checksum How to use checksums |
42e3021e1d140208c4d70124f3976db588b87a50f7fc48b1fddc3baf112660fb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 8, 2026.
Transparency logRelease files / vikshep_ingest-0.4.0-py3-none-any.whl
| Download URL | vikshep_ingest-0.4.0-py3-none-any.whl |
|---|---|
| Size | 42.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4ac73d0dde3711823f3fb9287c232296d292aa330e90117017b29b00feec66f3
|
|
BLAKE2b-256 checksum How to use checksums |
c9a1ff38a27a4ea0a6aa1c8fba1a43027660fdcf364574662585a4c72d46e866
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 8, 2026.
Transparency logSecurity for vikshep-ingest 0.4.0
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for vikshep_ingest-0.4.0.tar.gz
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 Nov 8, 2026.
Transparency logA note on package security
PyPI 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.