Skip to content

Commit

Permalink
np.float -> np.float64
Browse files Browse the repository at this point in the history
  • Loading branch information
weaverba137 committed Jan 31, 2025
1 parent c5e175b commit ce22c3c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions py/surveysim/stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,12 @@ def __init__(self, start_date=None, stop_date=None, restore=None):
# Build our internal array.
dtype = []
for name in ('MJD', 'tsched'):
dtype.append((name, np.float))
dtype.append((name, np.float64))
nprograms = len(self.tiles.programs)
for name in ('topen', 'tdead'):
dtype.append((name, np.float, (nprograms,)))
dtype.append((name, np.float64, (nprograms,)))
for name in ('tscience', 'tsetup', 'tsplit'):
dtype.append((name, np.float, (nprograms,)))
dtype.append((name, np.float64, (nprograms,)))
for name in ('completed', 'nexp', 'nsetup', 'nsplit', 'nsetup_abort', 'nsplit_abort'):
dtype.append((name, np.int32, (nprograms,)))
self._data = np.zeros(self.num_nights, dtype)
Expand Down

0 comments on commit ce22c3c

Please sign in to comment.