Welcome to pyGeoSimplify!
Download pyGeoSimplify
pip install pygeosimplify
Quick Start
import pygeosimplify as pgs
from pygeosimplify.simplify.layer import GeoLayer
from pygeosimplify.simplify.detector import SimplifiedDetector
# Set names of branches that specify coordinate system of cells
pgs.set_coordinate_branch("XYZ", "isXYZ")
pgs.set_coordinate_branch("EtaPhiR", "isEtaPhiR")
pgs.set_coordinate_branch("EtaPhiZ", "isEtaPhiZ")
pgs.set_coordinate_branch("RPhiZ", "isRPhiZ")
# Load geometry
geo = pgs.load_geometry("DetectorCells.root", tree_name='treeName')
# Create simplified detector
detector = SimplifiedDetector()
# Add dector layers to detector
n_layer = max(geo.layer) + 1
for i_layer in range(0, n_layer):
layer = GeoLayer(geo, layer_idx = i_layer, thinned_layer_width = 1)
detector.add_layer(layer)
# Process detector
detector.process()
# Save simplified detector to gdml file
detector.save_to_gdml(cyl_type='processed', output_path='processed.gdml')
LICENSE
pyGeoSimplify is free of use and open-source. All versions are published under the MIT License.
Metadata
Release files for pygeosimplify 0.0.20
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pygeosimplify-0.0.20.tar.gz | 23.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pygeosimplify-0.0.20-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 51.5 kB
Release files / pygeosimplify-0.0.20.tar.gz
| Download URL | pygeosimplify-0.0.20.tar.gz |
|---|---|
| Size | 23.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b276a6c1cd3a0aaddaaf39b613632c8796addf80409e5866368ee9b681df5e4d
|
|
BLAKE2b-256 checksum How to use checksums |
75bebffb3d5feaf11fec41b085443c9f0d262c040113ba1ebc521a45f8479999
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.4.1 CPython/3.13.15 Linux/6.17.0-1022-azure
|
Release files / pygeosimplify-0.0.20-py3-none-any.whl
| Download URL | pygeosimplify-0.0.20-py3-none-any.whl |
|---|---|
| Size | 28.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
413c8912171373f31fb85c7277ea724e764919b501559b8c0d2bb5bd3df3e97b
|
|
BLAKE2b-256 checksum How to use checksums |
b28a1126c50fbde6d78292db4494e6853f1960dc36ca55407743ea8ad7d0006a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.4.1 CPython/3.13.15 Linux/6.17.0-1022-azure
|