Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

152 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Plugin for X-/gamma-ray polarimetry

Resources

Stars

2 stars

Watchers

5 watching

Forks

Releases

Packages

Contributors

Languages