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.1.1.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.1.1-py3-none-any.whl (21.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: polpy-1.1.1.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.1.1.tar.gz
Algorithm Hash digest
SHA256 fa32d56105187fc31a705da3314c9584a583452061ac95a34d21e13ad1b63f8e
MD5 607e528e29bcc4104165c290e2cf7c21
BLAKE2b-256 6198574ca27eb58e05b5a3ae81a270590a2d3dd88b11dd6e06134644a0ca0dca

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: polpy-1.1.1-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.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a8258b15c7ce34bd35b50577a20d119aae91f24bd5cc42fd5b2af88585c45f3b
MD5 85ce1e82a8c5a3b2d893038e1a252936
BLAKE2b-256 51edecc745063c020e589bc804b33101a9c103812c42abca9b3fde6ade3d1ff2

See more details on using hashes here.

Provenance

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

This release

1.1.1 This release

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