Skip to content

Commit 275e70b

Browse files
authored
Merge pull request #1340 from zm711/blackrock_dep
Switch `np.math.ceil` to `math.ceil` as the former is deprecated as of NumPy 1.25
2 parents 51063db + ddb0a07 commit 275e70b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

neo/rawio/blackrockrawio.py

+2-1
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 = np.math.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)