Skip to content

Commit

Permalink
[FIX] Disable report logging during ICA restart loop (#743)
Browse files Browse the repository at this point in the history
* Temporarily disable, then reenable, report logger.

* disabled, not disable
  • Loading branch information
tsalo authored Jul 7, 2021
1 parent 8aeadcc commit ee9669c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tedana/workflows/tedana.py
Original file line number Diff line number Diff line change
Expand Up @@ -584,6 +584,9 @@ def tedana_workflow(data, tes, out_dir='.', mask=None,
keep_restarting = False
else:
keep_restarting = False

RepLGR.disabled = True # Disable the report to avoid duplicate text
RepLGR.disabled = False # Re-enable the report after the while loop is escaped
else:
LGR.info('Using supplied mixing matrix from ICA')
mixing_file = io_generator.get_name("ICA mixing tsv")
Expand Down

0 comments on commit ee9669c

Please sign in to comment.