Skip to content

Commit d478bd5

Browse files
committed
pipes.histology: remove call to deprecated SITES_COORDINATES
1 parent 922b266 commit d478bd5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ibllib/pipes/histology.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from one.api import ONE
77
import one.alf.io as alfio
88

9-
from neuropixel import SITES_COORDINATES, TIP_SIZE_UM, trace_header
9+
from neuropixel import TIP_SIZE_UM, trace_header
1010
import ibllib.atlas as atlas
1111
from ibllib.ephys.spikes import probes_description as extract_probes
1212
from ibllib.qc import base
@@ -93,7 +93,8 @@ def get_micro_manipulator_data(subject, one=None, force_extract=False):
9393
else:
9494
_logger.warning(f"no channel.localCoordinates found for {ses['local_path']}."
9595
f"Assumes checkerboard pattern")
96-
probe['sites_coordinates'].append(SITES_COORDINATES)
96+
th = trace_header(version=1)
97+
probe['sites_coordinates'].append(np.c_[th['x'], th['y']])
9798
# put the session information in there
9899
probe['session'] = [ses] * len(probe.description)
99100
probes = probes.append(probe)

0 commit comments

Comments
 (0)