Skip to content

Commit

Permalink
Merge pull request nanograv#1728 from dlakaplan/np.compat
Browse files Browse the repository at this point in the history
Removed np.compat.long (deprecated)
  • Loading branch information
abhisrkckl authored Apr 1, 2024
2 parents 870f340 + 8468a18 commit 60d5fc0
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)
- Turned ErfaWarning into an exception during testing; cleaned up test suite.
### Added
- Added numdifftools to setup.cfg to match requirements.txt
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 60d5fc0

Please sign in to comment.