Skip to content
5 changes: 1 addition & 4 deletions niworkflows/reports/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -462,10 +462,7 @@ def _process_orderings(orderings, layout):
{value[idx] for value in all_value_combos} for idx in range(len(orderings))
]
# if all values are None for an entity, we do not want to keep that entity
keep_idx = [
not ((len(val_set) == 1 and None in val_set) or not val_set)
for val_set in unique_values
]
keep_idx = [val_set not in (set(), {None}) for val_set in unique_values]
# the "kept" entities
entities = list(compress(orderings, keep_idx))
# the "kept" value combinations
Expand Down