Pixel_clusterizer is an easy to use pixel hit-clusterizer for Python. It clusters hits on an event basis in space and time.
The hits have to be defined as a numpy recarray. The array has to have the following fields:
- event_number
- frame
- column
- row
- charge
or a mapping of the names has to be provided. The data type does not matter.
The result of the clustering is the hit array extended by the following fields:
- cluster_ID
- is_seed
- cluster_size
- n_cluster
A new array with cluster information is also created created and has the following fields:
- event_number
- ID
- size
- charge
- seed_column
- seed_row
- mean_column
- mean_row
# Installation
The stable code is hosted on PyPI and can be installed by typing:
pip install pixel_clusterizer
# Usage
```
import numpy as np
from pixel_clusterizer import clusterizer
hits = np.ones(shape=(3, ), dtype=clusterizer.hit_data_type) # Create some data with std. hit data type
cr = clusterizer.HitClusterizer() # Initialize clusterizer
hits_clustered, cluster = cr.cluster_hits(hits) # Cluster hits
```
Also take a look at the example folder!
# Test installation
```
nosetests pixel_clusterizer
```
Metadata
Release files for pixel-clusterizer 3.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pixel_clusterizer-3.0.0.tar.gz | 33.7 kB | Without provenance | Details for pixel_clusterizer-3.0.0.tar.gz |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pixel_clusterizer-3.0.0-py3-none-any.whl | Python 3 | none | any | Details for pixel_clusterizer-3.0.0-py3-none-any.whl |
| pixel_clusterizer-3.0.0-py2-none-any.whl | Python 2 | none | any | Details for pixel_clusterizer-3.0.0-py2-none-any.whl |
Total release size: 106.0 kB
Release files / pixel_clusterizer-3.0.0.tar.gz
| Download URL | pixel_clusterizer-3.0.0.tar.gz |
|---|---|
| Size | 33.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fe18c5466cc5794616e5081e0593cc1dd04a9036d3ce39610360b2ab893de091
|
|
BLAKE2b-256 checksum How to use checksums |
0dd9aed767c346e392e07ad48c8383d1a0315e72c451462560fb25a269430948
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / pixel_clusterizer-3.0.0-py3-none-any.whl
| Download URL | pixel_clusterizer-3.0.0-py3-none-any.whl |
|---|---|
| Size | 36.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
61303196bf1b0cbb525bf84b06ebad2025f5b493c0b7a88c55d6914e2b820225
|
|
BLAKE2b-256 checksum How to use checksums |
ecc9705eac5c033c7ad9cece43c774515f48a3760265c3fd69d8dce6e0f3754e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / pixel_clusterizer-3.0.0-py2-none-any.whl
| Download URL | pixel_clusterizer-3.0.0-py2-none-any.whl |
|---|---|
| Size | 35.4 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
7b0dea7dbc5233770fcbad4ed8c5c7f1bb04b8ed15b93613b1c635847192525a
|
|
BLAKE2b-256 checksum How to use checksums |
b3edb02ecd90c61f723ee8037a9a115f337dceaecda51c0f26f6f5b6288a6161
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for pixel-clusterizer 3.0.0
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.