We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 960734a commit b088c3bCopy full SHA for b088c3b
1 file changed
src/aind_zarr_utils/pipeline_transformed.py
@@ -1794,11 +1794,12 @@ def ccf_to_indices(
1794
for point_lps in pipeline_pts:
1795
# Pipeline anatomical → continuous indices
1796
# Both ANTs and SimpleITK use LPS points - no conversion needed
1797
+ # Convert to numpy ordering `...[::-1]`
1798
continuous_idx = (
1799
pipeline_stub.TransformPhysicalPointToContinuousIndex(
1800
point_lps.astype(np.float64)
1801
)
- )
1802
+ )[::-1]
1803
ls_indices_layer.append(np.array(continuous_idx))
1804
1805
ls_indices[layer] = np.array(ls_indices_layer)
0 commit comments