# Phase Calculation (baseband_tasks.phases)¶

## Introduction¶

The phases module contains classes that help calculate pulsar phases for given times. There is support for polycos and for full pulsar timing solutions (via pint). The purpose of the module is to give these methods a common interface.

Note

Polyco file can be generated by tempo, tempo2, and pint. Due to the different treatment of reference phase, the results between each other may have a constant offset.

## Reference/API¶

#### Classes¶

 FractionalPhase(angle[, unit, wrap_angle]) Phase without the cycle count, i.e., with a range of 1 cycle. Phase(phase1[, phase2, copy, subok]) Represent two-part phase. PintPhase(par_file, observatory, frequency, …) Helper class for computing pulsar phases using PINT. Polyco(*args, **kwargs) Read in polyco file as Table, and set up class. PolycoPhase(polyco_file) Helper class for computing pulsar phases using polycos.

#### Class Inheritance Diagram¶

 PintToas(observatory, frequency, *[, …]) Convert time samples to PINT TOAs using given ephemeris, etc.