Skip to content

Commit

Permalink
clean a line
Browse files Browse the repository at this point in the history
  • Loading branch information
KaraMelih committed May 7, 2024
1 parent 713549b commit 4db8f99
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion snews_pt/messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,6 @@ def _convert_times(self, timing_series, initial_neutrino_time):
# convert to numpy datetime objects
times_obj = np.array([np.datetime64(t) for t in timing_series]).astype('datetime64[ns]')
times_obj = np.sort(times_obj)
initial_neutrino_time = times_obj[0] if initial_neutrino_time is None else initial_neutrino_time
# make sure they are always ns precision
relative_times = (times_obj - initial_neutrino_time).astype('timedelta64[ns]').astype(int).tolist()
elif all([isinstance(t, (int, float)) for t in timing_series]):
Expand Down

0 comments on commit 4db8f99

Please sign in to comment.