Skip to content

Commit f6d491a

Browse files
committed
Changed deprecated np.integer dtype for np.int64
1 parent 6bc5910 commit f6d491a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/astrohack/core/locit.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import numpy as np
12
from astropy.coordinates import EarthLocation
23
from astropy.time import Time
34
from scipy import optimize as opt
@@ -529,7 +530,7 @@ def _different_times(pos_time, neg_time, pos_phase, neg_phase, fields, tolerance
529530
)
530531
ntimes = out_times.shape[0]
531532
out_phase = np.ndarray(ntimes)
532-
out_field = np.ndarray(ntimes, dtype=np.integer)
533+
out_field = np.ndarray(ntimes, dtype=np.int64)
533534

534535
for i_time in range(ntimes):
535536
i_pos = np.absolute(pos_time - out_times[i_time]).argmin()

0 commit comments

Comments
 (0)