Skip to main content

timing library for high energy Pulsar observation

Project description

TAT-pulsar (Timing Analysis Toolkit for pulsar astrophysics)

Hey there! This is a Python toolbox made for folks interested in messing around with pulsar timing analysis, especially in high-energy scenarios. You know those pesky corrections needed for stuff like the barycentric correction and binary systems? Yeah, we’ve got functions for those. Plus, we’ve included some timing analysis tools and some examples to help you get started with your pulsar timing exploration. Enjoy!

DOI:<your number> Upload Python Package codecov ascl:2404.004

Install the Package using pip

  1. Open your terminal or command prompt.
  2. Type in the following command: pip install tat-pulsar

Install the Package using conda

Download the repository

Download the whole repository to your local directory using git clone or git fetch.

For example, In you local path execute:

git clone https://github.com/tuoyl/tat-pulsar.git

And you will get the folder tat-pulsar, in the folder you will see a file named setup.py. We will install the whole package based on this script.

Create a conda environment

The most elegant thing to do before installing is to create a new conda environment to avoid conflicts with your existing python environment.

conda create -n pulsar-timing python=3

after downloading the dependancies, execute

conda activate pulsar-timing

to enter the pulsar-timing environment of conda, you will see (pulsar-timing) before the shell prompt.

Install the repository

Now you are all set to install the repository. In the directory where the setup.py located, execute:

python3 -m pip install -e .

Uninstall the repository

if you want to uninstall the package for generating the product.

python3 -m pip uninstall tat-pulsar

Command line tools

Installing the project exposes a set of convenience entry points that wrap the utilities in tatpulsar/launcher:

  • tatpulsar-fold2d folds event lists into phase-resolved histograms.
  • tatpulsar-residuals calculates and plots timing residuals from par/tim pairs.
  • tatpulsar-gti-generator launches the interactive GTI selection helper.
  • tatpulsar-tempo-gui opens the PyQt timing analysis interface described below.

Timing analysis GUI

The package now bundles a PyQt-based application that wraps the TEMPO2-style timing workflow. After installing the package (either via pip or from source) you can launch the interface with:

tatpulsar-tempo-gui

From the main window you can:

  • Load *.par and *.tim files, inspect individual TOAs, and toggle them in or out of the fit.
  • Choose which pulsar parameters are free, then run a weighted least-squares fit using PINT.
  • Review interactive residual plots and the weighted RMS of the solution.
  • Export the curated TOA list and the fitted timing model to new files.

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

tat_pulsar-0.4.8-cp37-cp37m-macosx_10_9_x86_64.whl (69.9 MB view details)

Uploaded CPython 3.7mmacOS 10.9+ x86-64

File details

Details for the file tat_pulsar-0.4.8-cp37-cp37m-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for tat_pulsar-0.4.8-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 b408c684f7d10cea1672156ecb77dcbb74576fb1a5f79251288b50d34f6b9d6b
MD5 d984a759b40e82eec668d816107038a1
BLAKE2b-256 9c8f56d5398776ea37ce1b6faaf63aa84797f1d9ee8ef6b05b791b498e9f71ee

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page