Skip to content

Commit 5867302

Browse files
committed
quickfix of bug
1 parent 340ceea commit 5867302

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

niworkflows/viz/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,7 @@ def plot_melodic_components(melodic_dir, in_file, tr=None,
555555
color_time = current_palette[0]
556556
color_power = current_palette[1]
557557

558-
if noise_components.size > 0:
558+
if noise_components is not None and noise_components.size > 0:
559559
# If a noise components list is provided, assign red/green
560560
color_title = color_time = color_power = (
561561
'r' if (i + 1) in noise_components else 'g')

0 commit comments

Comments
 (0)