File tree Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -311,17 +311,14 @@ def index(self, config):
311
311
reportlets = []
312
312
for c in list_combos :
313
313
# do not display entities with the value None.
314
- c = list (filter (None , c ))
315
- ent = list (compress (entities , c ))
316
- missing_entities = list (set (entities ) - set (ent ))
314
+ c_filt = list (filter (None , c ))
315
+ ent_filt = list (compress (entities , c_filt ))
317
316
# Set a common title for this particular combination c
318
317
title = 'Reports for: %s.' % ', ' .join (
319
- ['%s <span class="bids-entity">%s</span>' % (ent [i ], c [i ])
320
- for i in range (len (c ))])
318
+ ['%s <span class="bids-entity">%s</span>' % (ent_filt [i ], c_filt [i ])
319
+ for i in range (len (c_filt ))])
321
320
for cfg in subrep_cfg ['reportlets' ]:
322
- for m_e in missing_entities :
323
- cfg ['bids' ].pop (m_e , None )
324
- cfg ['bids' ].update ({ent [i ]: c [i ] for i in range (len (c ))})
321
+ cfg ['bids' ].update ({entities [i ]: c [i ] for i in range (len (c ))})
325
322
rlet = Reportlet (self .layout , self .out_dir , config = cfg )
326
323
if not rlet .is_empty ():
327
324
rlet .title = title
You can’t perform that action at this time.
0 commit comments