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.21

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.21
File Size Uploaded Provenance Actions
pygeosimplify-0.0.21.tar.gz 23.0 kB Without provenance Details for pygeosimplify-0.0.21.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pygeosimplify 0.0.21
File Interpreter ABI Platform Actions
pygeosimplify-0.0.21-py3-none-any.whl Python 3 none any Details for pygeosimplify-0.0.21-py3-none-any.whl

Total release size: 51.5 kB

Release files / pygeosimplify-0.0.21.tar.gz

Download URL pygeosimplify-0.0.21.tar.gz
Size 23.0 kB
Tags Source
SHA-256 checksum
How to use checksums
56ccaf99aad61efcab306d8d66d1af024cd9bbca31a5da2859c6f9bfb3e75075
BLAKE2b-256 checksum
How to use checksums
65db026bc9c8319df2a868c48acbe8f6876cdae025003a1a41cbf1eaaf4e48bf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.4.1 CPython/3.13.16 Linux/7.0.0-1017-azure

Release files / pygeosimplify-0.0.21-py3-none-any.whl

Download URL pygeosimplify-0.0.21-py3-none-any.whl
Size 28.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dbd8411efcbf184523d25ea5ac8ee057a0744e4055685173ec9056f836f165f2
BLAKE2b-256 checksum
How to use checksums
027afe3159c204ef69519201415f06cd5ad4532be82715256a8f2b14086b53c0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.4.1 CPython/3.13.16 Linux/7.0.0-1017-azure

Security for pygeosimplify 0.0.21

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A 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.

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