Skip to main content

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
├── examples/
│   ├── example.py                 # loading and corner-plotting saved fit results
│   ├── polar_GRB170114A.py        # full joint POLAR + Fermi/GBM spectro-polarimetric fit
│   └── verify_czti_pol_fit.py     # cross-check of CZTI polarization fit against direct simulation
└── tests/                    # pytest unit tests

Data and response file formats

Two reference documents ship with the repo:

License

GPL-3.0.

Authors

Sujay Mate, Hancheng Li, Utkarsh Pathak, Yashowardhan Rai, Nicholas De Angelis, Merlin Kole, Varun Bhalerao.

Download files

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

Source Distribution

polpy-1.0.0.tar.gz (19.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

polpy-1.0.0-py3-none-any.whl (21.2 kB view details)

Uploaded Python 3

File details

Details for the file polpy-1.0.0.tar.gz.

File metadata

  • Download URL: polpy-1.0.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

Hashes for polpy-1.0.0.tar.gz
Algorithm Hash digest
SHA256 0ecb94eccc3b9675aa42b98b794a9cfe1dfb9704f1890a860e1be2dce693320c
MD5 d8d2917b5183f68767e13533b4d48191
BLAKE2b-256 fcce5c121a669d91dd331c901135865ad05371d6135662e481c0e7426779492b

See more details on using hashes here.

Provenance

The following attestation bundles were made for polpy-1.0.0.tar.gz:

Publisher: deploy.yml on threeML/polpy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file polpy-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: polpy-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 21.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for polpy-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d90907415b8e807268463483fcfae8d57cef291e1d4eaa6fda11969a9a47c44e
MD5 dcd69af2c8f4cfa035a4dfa5a2079c08
BLAKE2b-256 9113484265870d542e61addb14b5c3128b3bfb3aa1a86cccec220079e2595baa

See more details on using hashes here.

Provenance

The following attestation bundles were made for polpy-1.0.0-py3-none-any.whl:

Publisher: deploy.yml on threeML/polpy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

1.2.0

2 files

1.1.1

2 files

1.1.0

2 files

This release

1.0.0 This release

2 files

0.1.0

2 files

0.0.0

2 files

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