Skip to content

Commit b728c2d

Browse files
fedorovericspod
andcommitted
enh: fix warning
Co-authored-by: Eric Kerfoot <17726042+ericspod@users.noreply.github.com> Signed-off-by: Andrey Fedorov <fedorov@bwh.harvard.edu>
1 parent 9113b01 commit b728c2d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

modules/idc_dataset.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -663,8 +663,8 @@
663663
")\n",
664664
"\n",
665665
"# Map SEG midpoint z to CT z via world coordinates\n",
666-
"seg_mid_world = voxel_to_world(seg_ras.affine, [0, 0, seg_mid_z])\n",
667-
"ct_mid_voxel = world_to_voxel(ct_ras.affine, seg_mid_world)\n",
666+
"seg_mid_world = voxel_to_world(seg_ras.affine.numpy(), [0, 0, seg_mid_z])\n",
667+
"ct_mid_voxel = world_to_voxel(ct_ras.affine.numpy(), seg_mid_world)\n",
668668
"z_mid = int(np.clip(np.round(ct_mid_voxel[2]), 0, ct_np.shape[2] - 1))\n",
669669
"\n",
670670
"# Show which segments are present in the matched slice\n",

0 commit comments

Comments
 (0)