File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -292,16 +292,14 @@ def _parse_header(self):
292292 rising_indices .extend (rising )
293293 falling_indices .extend (falling )
294294
295- rising_indices = np .array (rising_indices )
296- falling_indices = np .array (falling_indices )
295+ rising_indices = np .array (rising_indices , dtype = np . int64 )
296+ falling_indices = np .array (falling_indices , dtype = np . int64 )
297297
298298 # Sort the indices to maintain chronological order
299299 sorted_order = np .argsort (rising_indices )
300300 rising_indices = rising_indices [sorted_order ]
301301 falling_indices = falling_indices [sorted_order ]
302302
303- durations = None
304- # if len(rising_indices) == len(falling_indices):
305303 durations = timestamps [falling_indices ] - timestamps [rising_indices ]
306304 if not self ._use_direct_evt_timestamps :
307305 timestamps = timestamps / info ["sample_rate" ]
You can’t perform that action at this time.
0 commit comments