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 f141d5f commit c764977Copy full SHA for c764977
niworkflows/reports/core.py
@@ -462,10 +462,7 @@ def _process_orderings(orderings, layout):
462
{value[idx] for value in all_value_combos} for idx in range(len(orderings))
463
]
464
# if all values are None for an entity, we do not want to keep that entity
465
- keep_idx = [
466
- not ((len(val_set) == 1 and None in val_set) or not val_set)
467
- for val_set in unique_values
468
- ]
+ keep_idx = [val_set not in (set(), {None}) for val_set in unique_values]
469
# the "kept" entities
470
entities = list(compress(orderings, keep_idx))
471
# the "kept" value combinations
0 commit comments