Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX] Add quiet and debug options to t2smap #123

Merged
merged 2 commits into from
Sep 3, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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