Retrieve g4edge test data from Python
Project description
g4edge test data
Install (with pip):
$ python -m pip install g4edge-testdata
Usage
Instantiating a G4EdgeTestData object:
from g4edgetestdata import G4EdgeTestData
g4data = G4EdgeTestData()
Clones g4edge/testdata in a temporary
location (not preserved across system reboots), unless the environment variable
G4EDGE_TESTDATA is set and points to the location of an existing
g4edge/testdata clone.
Alternatively, the path to an existing g4edge/testdata clone can be provided to the class constructor:
from g4edgetestdata import G4EdgeTestData
g4data = G4EdgeTestData("path/to/g4edge/testdata")
Access to data files is provided through the square brackets operator:
>>> g4data["gdml/001_box.gdml"]
PosixPath('/tmp/g4edge-testdata-gipert/data/gdml/001_box.gdml')
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file g4edge_testdata-0.1.0.tar.gz.
File metadata
- Download URL: g4edge_testdata-0.1.0.tar.gz
- Upload date:
- Size: 16.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
df1dd9211983744c6cd981a63c5fc4485b5e654f34b6c07bacc1f5a54deac5cf
|
|
| MD5 |
9f4765828094be0749e68a913e36ae80
|
|
| BLAKE2b-256 |
bdfd339eefc74f60774c850fa23bab5ed77095706853243307c7f15802c5c4cf
|
File details
Details for the file g4edge_testdata-0.1.0-py3-none-any.whl.
File metadata
- Download URL: g4edge_testdata-0.1.0-py3-none-any.whl
- Upload date:
- Size: 16.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
94dca2df14677f7b1885205ae468392664f7852014cadfede57d259a7d4d6ef3
|
|
| MD5 |
076371c8d25dad99b8abc145dd453495
|
|
| BLAKE2b-256 |
4a22d416bef6c169e4e68bd059409a14929157c54e9705348cdcb0ec786c94dd
|