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

Uploaded Python 3

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

Hashes for polpy-1.1.0.tar.gz
Algorithm Hash digest
SHA256 6979d0740ba7c347992e14a960b63aaf7f4758ae0d59b90744fc769138ddcb57
MD5 8f15d668524a0c9e03fde56e875c36d3
BLAKE2b-256 a64e47f14eff5bc032b0dc8ac13b233dfcc71acc2ef4bfc21d391673f3cc762e

See more details on using hashes here.

Provenance

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

Hashes for polpy-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5c0c5f708075f479f324234c1ed7b02634b5796d2a5bf23654349786f82185b7
MD5 fe5d35f1ebed71d4849db167671301cf
BLAKE2b-256 fbaea0257d12df22efe5aa0d9ed76b2b29140fa7174a0722c01a2d32aee1be41

See more details on using hashes here.

Provenance

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

This release

1.1.0 This release

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