Skip to content

Commit 2c172c6

Browse files
committed
top level numpy import
1 parent 74363ad commit 2c172c6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/pynwb/epoch.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
from bisect import bisect_left
22

3+
import numpy as np
4+
35
from hdmf.data_utils import DataIO
46
from hdmf.common import DynamicTable
57
from hdmf.utils import docval, getargs, popargs, get_docval, AllowPositional
@@ -93,7 +95,6 @@ def get_starting_time(self):
9395
"""
9496
if len(self) == 0:
9597
return None
96-
import numpy as np
9798
# NOTE: Could be optimized to self['start_time'].data[0] if intervals are guaranteed sorted
9899
return float(np.min(self['start_time'].data[:]))
99100

0 commit comments

Comments
 (0)