Skip to content

Commit

Permalink
some fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasGensollen committed Apr 4, 2023
1 parent a4ed52b commit ef3c471
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ def build_core_nodes(self):
init_node,
fmap_calibration_and_registration,
[
("fmap_magnitude", "inputnode.magnitude_fmap"),
("fmap_magnitude", "inputnode.bias_magnitude_fmap"),
("fmap_phasediff", "inputnode.fmap_phasediff"),
("delta_echo_time", "inputnode.delta_echo_time"),
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -501,16 +501,16 @@ def calibrate_and_register_fmap(
[("out_file", "in_file")],
),
# Output connections
(smooth_calibrated_fmap, outputnode, ["out_file", "smooth_calibrated_fmap"]),
(smooth_calibrated_fmap, outputnode, [("out_file", "smooth_calibrated_fmap")]),
(
register_bet_magnitude_fmap_onto_b0,
outputnode,
["out_file", "bet_magnitude_fmap_registered_onto_b0"],
[("out_file", "bet_magnitude_fmap_registered_onto_b0")],
),
(
apply_xfm_on_calibrated_fmap,
outputnode,
["out_file", "registered_calibrated_fmap"],
[("out_file", "registered_calibrated_fmap")],
),
]

Expand Down
7 changes: 5 additions & 2 deletions test/nonregression/pipelines/test_run_pipelines_dwi.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,10 @@ def test_prepare_phasediff_fmap(cmdopt, tmp_path):

@pytest.mark.fast
def test_dwi_calibrate_and_register_fmap(cmdopt, tmp_path):
"""Test step 2 of pipeline DWIPreprocessingUsingPhaseDiff."""
"""Test step 2 of pipeline DWIPreprocessingUsingPhaseDiff.
This is a fast test which should run in about 1 minute.
"""
from clinica.pipelines.dwi_preprocessing_using_fmap.dwi_preprocessing_using_phasediff_fmap_workflows import (
calibrate_and_register_fmap,
)
Expand All @@ -193,7 +196,7 @@ def test_dwi_calibrate_and_register_fmap(cmdopt, tmp_path):
)
delta_echo_time = abs(echo_time2 - echo_time1)

wf = calibrate_and_register_fmap()
wf = calibrate_and_register_fmap(output_dir=str(tmp_path / "tmp"))
wf.inputs.inputnode.reference_b0 = str(
input_dir / "sub-01_ses-M000_avg_b0_brain.nii.gz"
)
Expand Down

0 comments on commit ef3c471

Please sign in to comment.