This is a template repository for Python projects that use Poetry for their dependency management.
Project description
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
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
pygeosimplify-0.0.2.tar.gz
(20.0 kB
view details)
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 pygeosimplify-0.0.2.tar.gz.
File metadata
- Download URL: pygeosimplify-0.0.2.tar.gz
- Upload date:
- Size: 20.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.11.6 Linux/6.2.0-1015-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
71a0566551770738bcc472965b5b4eaeaeaf78c2f521ebf806bd0cd653b84562
|
|
| MD5 |
e59a6b415d9c8b9325841a1a9369af42
|
|
| BLAKE2b-256 |
9d15c0f1dd612dbc0f570f6956a54a612381513d2ce17226ff4b4cf4126e276b
|
File details
Details for the file pygeosimplify-0.0.2-py3-none-any.whl.
File metadata
- Download URL: pygeosimplify-0.0.2-py3-none-any.whl
- Upload date:
- Size: 24.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.11.6 Linux/6.2.0-1015-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
db7a2d660848c1c10fac76a83a140bb94e383fe794875bc8b999247c922b73da
|
|
| MD5 |
556b52ec120ab29e8d86b6ed8404a7ce
|
|
| BLAKE2b-256 |
9701f3f351c0210c143947d9784637b7b58914de41a84c692644d09d389d8ce8
|