Skip to content

Commit

Permalink
Typo proves warning doesn't arise
Browse files Browse the repository at this point in the history
  • Loading branch information
aarchiba committed Feb 29, 2024
1 parent 5d3111c commit 221e65e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/pint/observatory/clock_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -872,10 +872,7 @@ def evaluate(self, t, limits="warn"):
corrections : astropy.units.Quantity
The corrections in units of microseconds.
"""
with warnings.catch_warnings():
# FIXME: could these warnings be useful?
warnings.filterwarnings("ignore", r".*dubuious year", erfa.ErfaWarning)
needs_update = np.any(t > self.clock_file.time[-1])
needs_update = np.any(t > self.clock_file.time[-1])
if needs_update:
self.update()
return self.clock_file.evaluate(t, limits=limits)
Expand Down

0 comments on commit 221e65e

Please sign in to comment.