Skip to content

Commit

Permalink
Typo fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zm711 authored Jun 21, 2023
1 parent 4cb49d5 commit 9a95a75
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions neo/io/proxyobjects.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ def _time_slice_indices(self, time_slice, strict_slicing=True):
else:
t_start = max(t_start, self.t_start)
# the i_start is necessary ceil
i_start = np.rint((t_start - self.t_start).magnitude * sr.magnitude)).astype(np.int64)
i_start = np.rint((t_start - self.t_start).magnitude * sr.magnitude).astype(np.int64)
# this needed to get the real t_start of the first sample
# because do not necessary match what is demanded
sig_t_start = self.t_start + i_start / sr
Expand All @@ -201,7 +201,7 @@ def _time_slice_indices(self, time_slice, strict_slicing=True):
assert self.t_start <= t_stop <= self.t_stop, 't_stop is outside'
else:
t_stop = min(t_stop, self.t_stop)
i_stop = np.rint((t_stop - self.t_start).magnitude * sr.magnitude)).astype(np.int64)
i_stop = np.rint((t_stop - self.t_start).magnitude * sr.magnitude).astype(np.int64)
return i_start, i_stop, sig_t_start

def load(self, time_slice=None, strict_slicing=True,
Expand Down

0 comments on commit 9a95a75

Please sign in to comment.