Skip to content

Commit

Permalink
crop example for faster test
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelstjean committed Jul 11, 2016
1 parent b43185f commit d630f0c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nlsam/tests/test_scripts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ function check_return_code()

# Crop example dataset
python -c 'import nibabel as nib; import numpy as np; d = nib.load("dwi.nii.gz").get_data(); nib.save(nib.Nifti1Image(d[70:80],np.eye(4)), "dwi.nii.gz")'
python -c 'import nibabel as nib; import numpy as np; d = nib.load("mask.nii.gz").get_data(); nib.save(nib.Nifti1Image(d[70:80],np.eye(4)), "mask.nii.gz")'

# Test on example dataset
stabilizer dwi.nii.gz dwi_stab_localstd.nii.gz 1 sigma_localstd.nii.gz -m mask.nii.gz --bvals bvals --bvecs bvecs --noise_est local_std --smooth no_smoothing
Expand Down

0 comments on commit d630f0c

Please sign in to comment.