Skip to main content
Logo

Release Build status codecov Activity License DOI Downloads

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)

Source distribution for pygeosimplify 0.0.20
File Size Uploaded
pygeosimplify-0.0.20.tar.gz 23.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pygeosimplify 0.0.20
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.0.20 This release

2 release files

0.0.19

2 release files

0.0.18

2 release files

0.0.17

2 release files

0.0.16

2 release files

0.0.15

2 release files

0.0.14

2 release files

0.0.13

2 release files

0.0.12

2 release files

0.0.10

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page