Skip to main content

codecov

PolPy

polpy is a universal plugin for 3ML developed to analyse polarization data from X-ray/gamma-ray scattering polarimeters. In particular, it is developed to perform polarimetry of high-energy transients, such as gamma-ray bursts (GRBs). It is based 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:

License

GPL-3.0.

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

polpy-1.2.0.tar.gz (19.6 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.2.0-py3-none-any.whl (21.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: polpy-1.2.0.tar.gz
  • Upload date:
  • Size: 19.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for polpy-1.2.0.tar.gz
Algorithm Hash digest
SHA256 1ad55fa1d2c340d932dfac7d5af7573ccefd5dc3e4a335dc80286419789f619d
MD5 483d83fd9f327a879e88e3f5fd83dc6b
BLAKE2b-256 3e78ece16de110756d8ff698388a99c15b9ec28ea992a080480871153d70d0d4

See more details on using hashes here.

Provenance

The following attestation bundles were made for polpy-1.2.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.2.0-py3-none-any.whl.

File metadata

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

Hashes for polpy-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4a5b6ca8bac7c518177dc17f577f90eea1f60936fed2dd62f67d79edf685a87f
MD5 06c29dd6d37e869064cdc8dab6262034
BLAKE2b-256 40fbee3630394d4ab40d726b303fc92593b274b6ba37b867b077ecf4506651e6

See more details on using hashes here.

Provenance

The following attestation bundles were made for polpy-1.2.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

This release

1.2.0 This release

2 files

1.1.1

2 files

1.1.0

2 files

1.0.0

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