Skip to content

Commit

Permalink
Time: cast offset to array for easier slicing
Browse files Browse the repository at this point in the history
  • Loading branch information
rossjjennings committed Dec 5, 2023
1 parent 0870526 commit 9df159c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cycspec_simulator/time.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def __init__(self, mjd, second, offset):
raise ValueError(f"Second {second} is beyond end of day {mjd}")
self.mjd = mjd
self.second = second
self.offset = offset
self.offset = np.asanyarray(offset)

def __getitem__(self, sl):
return Time(self.mjd, self.second, self.offset[sl])
Expand Down

0 comments on commit 9df159c

Please sign in to comment.