diff --git a/nireports/interfaces/reporting/masks.py b/nireports/interfaces/reporting/masks.py index 34d1c6d7..4dba645c 100644 --- a/nireports/interfaces/reporting/masks.py +++ b/nireports/interfaces/reporting/masks.py @@ -235,8 +235,9 @@ def _generate_report(self): seg_files = self.inputs.in_rois mask_file = None if not isdefined(self.inputs.in_mask) else self.inputs.in_mask - levels = self.inputs.levels or [] - colors = self.inputs.colors or [] + # Remove trait decoration and replace None with [] + levels = list(self.inputs.levels or []) + colors = list(self.inputs.colors or []) if len(seg_files) == 1: # in_rois is a segmentation nsegs = len(levels)