Skip to content

Commit

Permalink
Become agnostic to the units of PINT phases
Browse files Browse the repository at this point in the history
  • Loading branch information
mhvk committed May 27, 2020
1 parent 719eecf commit 3d7e4cd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scintillometry/phases/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ def __call__(self, t):
shape = getattr(toas, 'shape', ())
# TODO: Once PINT uses the Phase class, we can return the
# result directly.
return Phase(ph.int, ph.frac).reshape(shape)
with u.add_enabled_equivalencies([(u.dimensionless_unscaled, u.cy)]):
return Phase(ph.int, ph.frac).reshape(shape)

def apparent_spin_freq(self, t):
"""Compute the apparent spin frequency at one or more times.
Expand Down

0 comments on commit 3d7e4cd

Please sign in to comment.