Skip to content

Commit

Permalink
downsample testdata for MUCH faster tests!
Browse files Browse the repository at this point in the history
  • Loading branch information
ahoopes committed Sep 18, 2020
1 parent 1352e8a commit f4e9bde
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 6 deletions.
2 changes: 1 addition & 1 deletion mri_concatenate_gcam/testdata.tar.gz
4 changes: 4 additions & 0 deletions mri_mask/test.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
#!/usr/bin/env bash
source "$(dirname $0)/../test.sh"

# untaring and taring the large gcam data is time consuming,
# so don't remove output before each test
FSTEST_NO_DATA_RESET=1 && init_testdata

# apply mask
test_command mri_mask nu.1.mgz brainmask.1.mgz mask.mgz
compare_vol mask.mgz mask.ref.mgz
Expand Down
2 changes: 1 addition & 1 deletion mri_mask/testdata.tar.gz
9 changes: 6 additions & 3 deletions mris_transform/test.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#!/usr/bin/env bash
source "$(dirname $0)/../test.sh"

# untaring is time consuming, so don't remove output before each test
FSTEST_NO_DATA_RESET=1 && init_testdata

# transform surface with LTA
test_command mris_transform lh.1.pial 1_to_2.lta lh.out.pial
compare_surf lh.out.pial lh.ref.pial
Expand All @@ -19,12 +22,12 @@ compare_surf lh.out.pial lh.ref.pial

# transform surface with GCAM
test_command mris_transform --trx-dst nu.2.mgz lh.1.pial 1_to_2.m3z lh.out.pial
compare_surf lh.out.pial lh.ref.pial
compare_surf lh.out.pial lh.ref.gcam.pial

# transform surface with inverse GCAM
test_command mris_transform --trx-dst nu.1.mgz --is-inverse lh.1.pial 2_to_1.m3z lh.out.pial
compare_surf lh.out.pial lh.ref.pial
compare_surf lh.out.pial lh.ref.gcam.inv.pial

# just copy surface
test_command mris_transform lh.1.pial identity.nofile lh.out.pial
compare_surf lh.out.pial lh.1.pial
compare_surf lh.out.pial lh.1.pial
2 changes: 1 addition & 1 deletion mris_transform/testdata.tar.gz

0 comments on commit f4e9bde

Please sign in to comment.