Skip to content

Commit

Permalink
Added missing rescaling of t_start and t_stop to the units of spiketr…
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulinaDabrowska committed Jan 10, 2022
1 parent cfdecd8 commit 784fb8d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions elephant/conversion.py
Original file line number Diff line number Diff line change
Expand Up @@ -541,8 +541,10 @@ def check_consistency():
self._t_start = self._t_start.rescale(self.units).item()
self._t_stop = self._t_stop.rescale(self.units).item()

start_shared = max(st.t_start.item() for st in spiketrains)
stop_shared = min(st.t_stop.item() for st in spiketrains)
start_shared = max(st.t_start.rescale(self.units).item()
for st in spiketrains)
stop_shared = min(st.t_stop.rescale(self.units).item()
for st in spiketrains)

tolerance = self.tolerance
if tolerance is None:
Expand Down

0 comments on commit 784fb8d

Please sign in to comment.