|
6 | 6 | from numpy import array as npa
|
7 | 7 |
|
8 | 8 | import nibabel
|
9 |
| -from nibabel import parrec2nii_cmd as parrec2nii |
| 9 | +from nibabel.cmdline import parrec2nii |
10 | 10 |
|
11 | 11 | from mock import Mock, MagicMock, patch
|
12 | 12 | from nose.tools import assert_true
|
|
29 | 29 | [ 0. , 0. , 0. , 1. ]])
|
30 | 30 |
|
31 | 31 |
|
32 |
| -@patch('nibabel.parrec2nii_cmd.verbose') |
33 |
| -@patch('nibabel.parrec2nii_cmd.io_orientation') |
34 |
| -@patch('nibabel.parrec2nii_cmd.nifti1') |
35 |
| -@patch('nibabel.parrec2nii_cmd.pr') |
| 32 | +@patch('nibabel.cmdline.parrec2nii.verbose') |
| 33 | +@patch('nibabel.cmdline.parrec2nii.io_orientation') |
| 34 | +@patch('nibabel.cmdline.parrec2nii.nifti1') |
| 35 | +@patch('nibabel.cmdline.parrec2nii.pr') |
36 | 36 | def test_parrec2nii_sets_qform_sform_code1(*args):
|
37 | 37 | # Check that set_sform(), set_qform() are called on the new header.
|
38 | 38 | parrec2nii.verbose.switch = False
|
@@ -67,7 +67,7 @@ def test_parrec2nii_sets_qform_sform_code1(*args):
|
67 | 67 | nhdr.set_sform.assert_called_with(AN_OLD_AFFINE, code=1)
|
68 | 68 |
|
69 | 69 |
|
70 |
| -@patch('nibabel.parrec2nii_cmd.verbose') |
| 70 | +@patch('nibabel.cmdline.parrec2nii.verbose') |
71 | 71 | def test_parrec2nii_save_load_qform_code(*args):
|
72 | 72 | # Tests that after parrec2nii saves file, it has the sform and qform 'code'
|
73 | 73 | # set to '1', which means 'scanner', so that other software, e.g. FSL picks
|
|
0 commit comments