Skip to content

Commit

Permalink
Update LGR messages
Browse files Browse the repository at this point in the history
  • Loading branch information
emdupre committed Aug 6, 2018
1 parent 971ba1b commit b217efa
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
6 changes: 4 additions & 2 deletions tedana/workflows/t2smap.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,10 @@ def t2smap_workflow(data, tes, mask=None, fitmode='all', combmode='t2s', label=N
else:
LGR.info('Using output directory: {}'.format(out_dir))

if mask is None:
LGR.info('Computing adaptive mask')
if mask is None:
LGR.info('Computing adaptive mask')
else:
LGR.info('Using user-defined mask')
mask, masksum = utils.make_adaptive_mask(catd, minimum=False, getsum=True)

LGR.info('Computing adaptive T2* map')
Expand Down
7 changes: 5 additions & 2 deletions tedana/workflows/tedana.py
Original file line number Diff line number Diff line change
Expand Up @@ -372,8 +372,11 @@ def tedana_workflow(data, tes, mask=None, mixm=None, ctab=None, manacc=None,

if mask is None:
LGR.info('Computing adaptive mask')
mask, masksum = utils.make_adaptive_mask(catd, minimum=False, getsum=True)
LGR.debug('Retaining {}/{} samples'.format(mask.sum(), n_samp))
else:
LGR.info('Using user-defined mask')
mask, masksum = utils.make_adaptive_mask(catd, mask=mask,
minimum=False, getsum=True)
LGR.debug('Retaining {}/{} samples'.format(mask.sum(), n_samp))

LGR.info('Computing T2* map')
t2s, s0, t2ss, s0s, t2sG, s0G = model.fit_decay(catd, tes, mask, masksum,
Expand Down

0 comments on commit b217efa

Please sign in to comment.