PolPy
polpy is a universal tool developed to analyse high-energy polarization data from scattering polarimeters. Based on 3ML, it is a generalization of the polarpy (Burgess, Kole et al. 2019, A&A) tool that was developed for POLAR analysis. It can be used for current and future scattering polarimeters, provided standardized data and response format (docs/Data_and_Response_Format_For_PolPy.pdf) and a defined coordinate convention are followed (docs/Coordinate_Defintions_and_Transforms_For_PolPy.pdf).
.
Contents
Installation
polpy is available on PyPI and uses modern Python packaging via pyproject.toml. We recommend installing it inside a virtual environment (using conda, venv, or your preferred environment manager) to prevent dependency conflicts.
Standard Installation
To install the latest stable version directly from PyPI, run:
pip install polpy
Package layout
polpy/
├── polpy/
│ ├── poldata.py # PolData: read raw polarization event files, compute PA offset
│ ├── polresponse.py # PolResponse: read + interpolate the polarization response
│ └── polarizationlike.py # PolarizationLike: the 3ML plugin (likelihood, fitting, display)
├── docs/
│ ├── Data_and_Response_Format_For_PolPy.pdf
│ └── Coordinate_Defintions_and_Transforms_For_PolPy.pdf
└── tests/ # pytest unit tests
Data and response file formats
Two reference documents ship with the repo:
docs/Data_and_Response_Format_For_PolPy.pdf— layout of thePOLEVENTSevent FITS extension and the.prspresponse FITS extensions (INEBOUNDS,SABOUNDS,INPAVALS,SPECRESP POLMATRIX,SPECRESP UNPOLMATRIX)docs/Coordinate_Defintions_and_Transforms_For_PolPy.pdf— instrument reference frame, local-tangent-plane frame, and the IAU polarization-angle offset convention used byPolData.get_pa_offset()
License
Authors
Sujay Mate, Hancheng Li, Utkarsh Pathak, Yashowardhan Rai, Nicholas De Angelis, Varun Bhalerao, Merlin Kole.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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 polpy-1.1.0.tar.gz.
File metadata
- Download URL: polpy-1.1.0.tar.gz
- Upload date:
- Size: 19.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6979d0740ba7c347992e14a960b63aaf7f4758ae0d59b90744fc769138ddcb57
|
|
| MD5 |
8f15d668524a0c9e03fde56e875c36d3
|
|
| BLAKE2b-256 |
a64e47f14eff5bc032b0dc8ac13b233dfcc71acc2ef4bfc21d391673f3cc762e
|
Provenance
The following attestation bundles were made for polpy-1.1.0.tar.gz:
Publisher:
deploy.yml on threeML/polpy
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
polpy-1.1.0.tar.gz -
Subject digest:
6979d0740ba7c347992e14a960b63aaf7f4758ae0d59b90744fc769138ddcb57 - Sigstore transparency entry: 2568908559
- Sigstore integration time:
-
Permalink:
threeML/polpy@63133591924b93c5ee0a0886ab5c858b610212ba -
Branch / Tag:
refs/tags/v1.1.0 - Owner: https://github.com/threeML
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
deploy.yml@63133591924b93c5ee0a0886ab5c858b610212ba -
Trigger Event:
push
-
Statement type:
File details
Details for the file polpy-1.1.0-py3-none-any.whl.
File metadata
- Download URL: polpy-1.1.0-py3-none-any.whl
- Upload date:
- Size: 21.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5c0c5f708075f479f324234c1ed7b02634b5796d2a5bf23654349786f82185b7
|
|
| MD5 |
fe5d35f1ebed71d4849db167671301cf
|
|
| BLAKE2b-256 |
fbaea0257d12df22efe5aa0d9ed76b2b29140fa7174a0722c01a2d32aee1be41
|
Provenance
The following attestation bundles were made for polpy-1.1.0-py3-none-any.whl:
Publisher:
deploy.yml on threeML/polpy
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
polpy-1.1.0-py3-none-any.whl -
Subject digest:
5c0c5f708075f479f324234c1ed7b02634b5796d2a5bf23654349786f82185b7 - Sigstore transparency entry: 2568908564
- Sigstore integration time:
-
Permalink:
threeML/polpy@63133591924b93c5ee0a0886ab5c858b610212ba -
Branch / Tag:
refs/tags/v1.1.0 - Owner: https://github.com/threeML
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
deploy.yml@63133591924b93c5ee0a0886ab5c858b610212ba -
Trigger Event:
push
-
Statement type: