File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -292,15 +292,15 @@ 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 . intp )
296+ falling_indices = np .array (falling_indices , dtype = np . intp )
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
303+ # durations = None
304304 # if len(rising_indices) == len(falling_indices):
305305 durations = timestamps [falling_indices ] - timestamps [rising_indices ]
306306 if not self ._use_direct_evt_timestamps :
You can’t perform that action at this time.
0 commit comments