Skip to content

Commit c1894a5

Browse files
authored
use math.ceil
1 parent ba713de commit c1894a5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

neo/rawio/blackrockrawio.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@
6161
import os
6262
import re
6363
import warnings
64+
import math
6465

6566
import numpy as np
6667
import quantities as pq
@@ -646,7 +647,7 @@ def _get_timestamp_slice(self, timestamp, seg_index, t_start, t_stop):
646647
if t_start is None:
647648
ind_start = None
648649
else:
649-
ts = int(np.ceil(t_start * self.__nev_basic_header['timestamp_resolution']))
650+
ts = math.ceil(t_start * self.__nev_basic_header['timestamp_resolution'])
650651
ind_start = np.searchsorted(timestamp, ts)
651652

652653
if t_stop is None:

0 commit comments

Comments
 (0)