Skip to content

Commit 3cf6599

Browse files
effigiesmgxd
andcommitted
Apply suggestions from code review
Co-authored-by: Mathias Goncalves <[email protected]>
1 parent e2754d5 commit 3cf6599

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

niworkflows/viz/plots.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1040,8 +1040,8 @@ def get_surface_meshes(density, surface_type):
10401040
raise ValueError("Cortex data is not in fsLR space")
10411041

10421042
# medial wall needs to be added back in
1043-
lh_data = np.full(max(left_cortex.vertex_indices) + 1, np.nan)
1044-
rh_data = np.full(max(right_cortex.vertex_indices) + 1, np.nan)
1043+
lh_data = np.full(left_cortex.surface_number_of_vertices, np.nan)
1044+
rh_data = np.full(right_cortex.surface_number_of_vertices, np.nan)
10451045
lh_data[left_cortex.vertex_indices] = _concat_brain_struct_data([left_cortex], data)
10461046
rh_data[right_cortex.vertex_indices] = _concat_brain_struct_data([right_cortex], data)
10471047

0 commit comments

Comments
 (0)