Skip to content

Commit

Permalink
For #898 abandon float_ to prepare for NumPy 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
brandon-rhodes committed Feb 7, 2024
1 parent e4c79f7 commit b0abf97
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions skyfield/timelib.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from collections import namedtuple
from datetime import date, datetime, timedelta
from numpy import (
array, concatenate, cos, float_, int64, isnan, isinf, linspace,
array, concatenate, cos, float64, int64, isnan, isinf, linspace,
nan, ndarray, nonzero, pi, rollaxis, searchsorted, sin, where, zeros_like,

)
Expand Down Expand Up @@ -102,8 +102,8 @@ def __init__(self, delta_t_recent, leap_dates, leap_offsets):
self.delta_t_function = build_delta_t(delta_t_recent)

self.leap_dates, self.leap_offsets = leap_dates, leap_offsets
self.J2000 = Time(self, float_(T0))
self.B1950 = Time(self, float_(B1950))
self.J2000 = Time(self, float64(T0))
self.B1950 = Time(self, float64(B1950))
self.julian_calendar_cutoff = None

# Our internal leap-second table has three columns:
Expand Down

0 comments on commit b0abf97

Please sign in to comment.