-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# This is a combination of 5 commits.
# This is the 1st commit message: add better tools # The commit message #2 will be skipped: # add 3dcalc test # The commit message #3 will be skipped: # add 3dinfo test # The commit message #4 will be skipped: # in a state of chasis # The commit message #5 will be skipped: # fix bug in output directory
- Loading branch information
Showing
9 changed files
with
301 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
from .utils import tools | ||
import filecmp | ||
|
||
# Define Data | ||
data_paths = { | ||
"anatomical": "mini_data/anat_3mm.nii.gz", | ||
"no_skull": "mini_data/anat_3mm_no_skull_zero_padded.nii.gz", | ||
} | ||
|
||
|
||
def test_3dcalc_basic(data, run_cmd): | ||
outfile = data.outdir / "outside_brain.nii.gz" | ||
cmd = """ | ||
3dcalc -a {data.anatomical} -b {data.no_skull} -expr 'a*not(b)' -prefix {outfile} | ||
""" | ||
|
||
proc = run_cmd(cmd, current_vars=locals()) | ||
|
||
tools.assert_all_files_equal( | ||
data, kwargs_log={"append_to_ignored": ["Output dataset"]} | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
from .utils import tools | ||
import filecmp | ||
|
||
# Define Data | ||
data_paths = {"anatomical": "mini_data/anat_3mm.nii.gz"} | ||
|
||
|
||
def test_3dinfo_basic(data, run_cmd): | ||
cmd = """ | ||
3dinfo {data.anatomical} | ||
""" | ||
|
||
proc = run_cmd(cmd, current_vars=locals()) | ||
|
||
tools.assert_all_files_equal(data) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.