Skip to content

Commit

Permalink
shift right edges back to correct values
Browse files Browse the repository at this point in the history
Co-authored-by: skrausse <[email protected]>
  • Loading branch information
jo460464 and skrausse committed Oct 20, 2023
1 parent b332287 commit 08801e5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions elephant/spike_train_synchrony.py
Original file line number Diff line number Diff line change
Expand Up @@ -397,10 +397,12 @@ def annotate_synchrofacts(self):
``self.epoch.array_annotations`` *in-place*.
"""
epoch_complexities = self.epoch.array_annotations['complexity']
bin_shift = .5 / self.sampling_rate
right_edges = (
self.epoch.times.magnitude.flatten()
+ self.epoch.durations.rescale(
self.epoch.times.units).magnitude.flatten()
+ bin_shift.rescale(self.epoch.times.units).magnitude
)

for idx, st in enumerate(self.input_spiketrains):
Expand Down

0 comments on commit 08801e5

Please sign in to comment.