Skip to content

Commit

Permalink
Merge pull request #123 from emdupre/fix-t2smap-opts
Browse files Browse the repository at this point in the history
[FIX] Add quiet and debug options to t2smap
  • Loading branch information
emdupre authored Sep 3, 2018
2 parents e7f04ff + 1a9cac3 commit cb01d72
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion tedana/workflows/t2smap.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,21 @@ def _get_parser():
type=str,
help='Label for output directory.',
default=None)
parser.add_argument('--debug',
dest='debug',
help=argparse.SUPPRESS,
action='store_true',
default=False)
parser.add_argument('--quiet',
dest='quiet',
help=argparse.SUPPRESS,
action='store_true',
default=False)
return parser


def t2smap_workflow(data, tes, mask=None, fitmode='all', combmode='t2s', label=None):
def t2smap_workflow(data, tes, mask=None, fitmode='all', combmode='t2s',
label=None, debug=False, quiet=False):
"""
Estimate T2 and S0, and optimally combine data across TEs.
Expand All @@ -99,6 +110,14 @@ def t2smap_workflow(data, tes, mask=None, fitmode='all', combmode='t2s', label=N
label : :obj:`str` or :obj:`None`, optional
Label for output directory. Default is None.
Other Parameters
----------------
debug : :obj:`bool`, optional
Whether to run in debugging mode or not. Default is False.
quiet : :obj:`bool`, optional
If True, suppresses logging/printing of messages. Default is False.
Notes
-----
This workflow writes out several files, which are written out to a folder
Expand Down

0 comments on commit cb01d72

Please sign in to comment.