Skip to content

Commit

Permalink
Merge pull request #1340 from zm711/blackrock_dep
Browse files Browse the repository at this point in the history
Switch `np.math.ceil` to `math.ceil` as the former is deprecated as of NumPy 1.25
  • Loading branch information
apdavison authored Dec 9, 2023
2 parents 51063db + ddb0a07 commit 275e70b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion neo/rawio/blackrockrawio.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
import os
import re
import warnings
import math

import numpy as np
import quantities as pq
Expand Down Expand Up @@ -646,7 +647,7 @@ def _get_timestamp_slice(self, timestamp, seg_index, t_start, t_stop):
if t_start is None:
ind_start = None
else:
ts = np.math.ceil(t_start * self.__nev_basic_header['timestamp_resolution'])
ts = math.ceil(t_start * self.__nev_basic_header['timestamp_resolution'])
ind_start = np.searchsorted(timestamp, ts)

if t_stop is None:
Expand Down

0 comments on commit 275e70b

Please sign in to comment.