Skip to content

Commit e2754d5

Browse files
committed
FIX: Only check sizes of cortices
1 parent 9c6ac19 commit e2754d5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

niworkflows/viz/plots.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1035,7 +1035,8 @@ def get_surface_meshes(density, surface_type):
10351035
# as potential nonsteady states
10361036
data = img.dataobj[5:20].mean(axis=0)
10371037

1038-
if density == "32k" and len(data) != 91282:
1038+
counts = (left_cortex.index_count, right_cortex.index_count)
1039+
if density == "32k" and counts != (29696, 29716):
10391040
raise ValueError("Cortex data is not in fsLR space")
10401041

10411042
# medial wall needs to be added back in

0 commit comments

Comments
 (0)