Skip to content

Commit

Permalink
change t_stop back
Browse files Browse the repository at this point in the history
  • Loading branch information
Moritz-Alexander-Kern committed Jul 26, 2024
1 parent 05f0414 commit a2d2a93
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion elephant/spike_train_synchrony.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

import warnings
from collections import namedtuple
from copy import deepcopy
from copy import deepcopy, copy

import neo
import numpy as np
Expand Down Expand Up @@ -279,6 +279,7 @@ def __init__(self, spiketrains,
include_t_stop=True):

self.annotated = False
initial_t_stop = copy(spiketrains[0].t_stop)

super(Synchrotool, self).__init__(
spiketrains=spiketrains,
Expand All @@ -290,6 +291,9 @@ def __init__(self, spiketrains,
t_stop=spiketrains[0].t_stop + (1 / sampling_rate) if include_t_stop else None,
)

for st in spiketrains:
st.t_stop = initial_t_stop

def delete_synchrofacts(self, threshold, in_place=False, mode='delete'):
"""
Delete or extract synchronous spiking events.
Expand Down

0 comments on commit a2d2a93

Please sign in to comment.