Skip to content

Commit

Permalink
removed np.compat.long
Browse files Browse the repository at this point in the history
  • Loading branch information
dlakaplan committed Mar 14, 2024
1 parent bf9e15b commit a4585f2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG-unreleased.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ the released changes.
- `check_ephemeris_connection` CI test no longer requires access to static NANOGrav site
- `TimingModel.compare()` now calls `change_binary_epoch()`.
- When clock files contain out-of-order entries, the exception now records the first MJDs that are out of order
- `np.compat.long` -> `int` (former is deprecated)
### Added
- Added numdifftools to setup.cfg to match requirements.txt
- Documentation: Added `convert_parfile` to list of command-line tools in RTD
Expand Down
2 changes: 1 addition & 1 deletion src/pint/models/stand_alone_psr_binaries/binary_orbits.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def orbits(self):
def orbit_phase(self):
"""Orbital phase (between zero and two pi)."""
orbits = self.orbits()
norbits = np.array(np.floor(orbits), dtype=np.compat.long)
norbits = np.array(np.floor(orbits), dtype=int)
return (orbits - norbits) * 2 * np.pi * u.rad

def pbprime(self):
Expand Down

0 comments on commit a4585f2

Please sign in to comment.