Skip to content

Commit 15a199f

Browse files
authored
Get rid of 'direct_evt_timestamps' flag
1 parent f8f20cf commit 15a199f

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

neo/rawio/spikeglxrawio.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,6 @@ def __init__(self, dirname="", load_sync_channel=False, load_channel_location=Fa
111111
self.dirname = dirname
112112
self.load_sync_channel = load_sync_channel
113113
self.load_channel_location = load_channel_location
114-
self._use_direct_evt_timestamps = None
115114

116115
def _source_name(self):
117116
return self.dirname
@@ -321,10 +320,7 @@ def _get_event_timestamps(self, block_index, seg_index, event_channel_index, t_s
321320

322321
def _rescale_event_timestamp(self, event_timestamps, dtype, event_channel_index):
323322
info = self.signals_info_dict[0, "nidq"] # There are no events that are not in the nidq stream
324-
if not self._use_direct_evt_timestamps:
325-
event_times = event_timestamps.astype(dtype) / float(info["sampling_rate"])
326-
else: # Does this ever happen?
327-
event_times = event_timestamps.astype(dtype)
323+
event_times = event_timestamps.astype(dtype) / float(info["sampling_rate"])
328324
return event_times
329325

330326
def _rescale_epoch_duration(self, raw_duration, dtype, event_channel_index):

0 commit comments

Comments
 (0)