Skip to main content

Python package for automatic, cell-based inference of clash-free simplified detector geometry.

Project description

Logo

Release Build status codecov Commit activity License

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", "isCartesian")

# Load geometry
geo = pgs.load_geometry("DetectorCells.root", tree_name='treeName')

# Create simplified detector
detector = SimplifiedDetector()

# Add dector layers to detector
layer = GeoLayer(geo, layer_idx)
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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pygeosimplify-0.0.10.tar.gz (22.1 kB view details)

Uploaded Source

Built Distribution

pygeosimplify-0.0.10-py3-none-any.whl (26.5 kB view details)

Uploaded Python 3

File details

Details for the file pygeosimplify-0.0.10.tar.gz.

File metadata

  • Download URL: pygeosimplify-0.0.10.tar.gz
  • Upload date:
  • Size: 22.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.5 Linux/6.5.0-1025-azure

File hashes

Hashes for pygeosimplify-0.0.10.tar.gz
Algorithm Hash digest
SHA256 a94088e35f130f97ddff5fb10338bed5f890b0b490564994d32c3f3aeb9c81d8
MD5 74ba9efbba756d5a93dbc26c52a2f4a3
BLAKE2b-256 aac713539fee7f09b3b29cc40ee6992af1f108e85985eaf9e2a664ac16fe5c3c

See more details on using hashes here.

File details

Details for the file pygeosimplify-0.0.10-py3-none-any.whl.

File metadata

  • Download URL: pygeosimplify-0.0.10-py3-none-any.whl
  • Upload date:
  • Size: 26.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.5 Linux/6.5.0-1025-azure

File hashes

Hashes for pygeosimplify-0.0.10-py3-none-any.whl
Algorithm Hash digest
SHA256 9224aeb2e6e6a88f7967fa4ca2e1157e316ff0d956cb09b4f7c7335e696e9acd
MD5 4469c576f5a12818764def880e937e36
BLAKE2b-256 af4d69bf4a0328eaa53d36cfa354c150805f65dd71add06f321be95c6fc479ce

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page