Skip to content

Commit

Permalink
quickfix of bug
Browse files Browse the repository at this point in the history
  • Loading branch information
oesteban committed May 3, 2018
1 parent 340ceea commit 5867302
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion niworkflows/viz/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,7 @@ def plot_melodic_components(melodic_dir, in_file, tr=None,
color_time = current_palette[0]
color_power = current_palette[1]

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

0 comments on commit 5867302

Please sign in to comment.