Skip to content

Commit 4965ca5

Browse files
committed
Merge branch 'hotfix/2.13.1'
2 parents 080bbed + f7866b9 commit 4965ca5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

brainbox/io/one.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
import one.alf.io as alfio
1313
from one.alf.files import get_alf_path
1414
from one.alf import cache
15-
from neuropixel import SITES_COORDINATES, TIP_SIZE_UM, trace_header
15+
from neuropixel import TIP_SIZE_UM, trace_header
1616
import spikeglx
1717

1818
from iblutil.util import Bunch
@@ -842,7 +842,7 @@ def load_channels_from_insertion(ins, depths=None, one=None, ba=None):
842842
idx = np.argmax(val)
843843
traj = traj[idx]
844844
if depths is None:
845-
depths = SITES_COORDINATES[:, 1]
845+
depths = trace_header(version=1)[:, 1]
846846
if traj['provenance'] == 'Planned' or traj['provenance'] == 'Micro-manipulator':
847847
ins = atlas.Insertion.from_dict(traj)
848848
# Deepest coordinate first

0 commit comments

Comments
 (0)