We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e2754d5 commit 3cf6599Copy full SHA for 3cf6599
niworkflows/viz/plots.py
@@ -1040,8 +1040,8 @@ def get_surface_meshes(density, surface_type):
1040
raise ValueError("Cortex data is not in fsLR space")
1041
1042
# 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)
+ lh_data = np.full(left_cortex.surface_number_of_vertices, np.nan)
+ rh_data = np.full(right_cortex.surface_number_of_vertices, np.nan)
1045
lh_data[left_cortex.vertex_indices] = _concat_brain_struct_data([left_cortex], data)
1046
rh_data[right_cortex.vertex_indices] = _concat_brain_struct_data([right_cortex], data)
1047
0 commit comments