Skip to content

Commit

Permalink
Merge pull request #287 from nipreps/enh/plot-epi-to-fmap-registration
Browse files Browse the repository at this point in the history
FIX: Revise debug/sloppy operations of the ``coeff2epi`` workflow
  • Loading branch information
oesteban committed Oct 6, 2022
2 parents 6061ed8 + 7bdd7eb commit 6fdd3a6
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions sdcflows/workflows/apply/registration.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@

def init_coeff2epi_wf(
omp_nthreads,
sloppy=False,
debug=False,
write_coeff=False,
name="coeff2epi_wf",
Expand All @@ -56,8 +57,10 @@ def init_coeff2epi_wf(
----------
omp_nthreads : :obj:`int`
Maximum number of threads an individual process may use.
debug : :obj:`bool`
sloppy : :obj:`bool`
Run fast configurations of registrations.
debug : :obj:`bool`
Run in debug mode, that is, generating additional traces of performance.
name : :obj:`str`
Unique name of this workflow.
write_coeff : :obj:`bool`
Expand Down Expand Up @@ -109,13 +112,14 @@ def init_coeff2epi_wf(
# Register the reference of the fieldmap to the reference
# of the target image (the one that shall be corrected)
ants_settings = pkgrf(
"sdcflows", f"data/fmap-any_registration{'_testing' * debug}.json"
"sdcflows", f"data/fmap-any_registration{'_testing' * sloppy}.json"
)

coregister = pe.Node(
Registration(
from_file=ants_settings,
output_warped_image=True,
output_warped_image=debug,
output_inverse_warped_image=debug,
),
name="coregister",
n_procs=omp_nthreads,
Expand Down

0 comments on commit 6fdd3a6

Please sign in to comment.