fixed stylistic issues for Travis build
@@ -8,22 +8,15 @@ from pathlib import Path
import pytest
qform_code = 1
sform_code = 1
-qform=np.array([[ 1, 0, 0,
- 0],
- [ 0, 1, 0,
- 0],
- [ 0, 0, 1,
- 0],
- [ 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
- 1.00000000e+00]])
-sform=np.array([[ 1, 0, 0,
- 0],
- [ 0, 1, 0,
- 0],
- [ 0, 0, 1,
- 0],
- [ 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
- 1.00000000e+00]])
+qform = np.array([[1, 0, 0, 0],
+ [0, 1, 0, 0],
+ [0, 0, 1, 0],
+ [0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 1.00000000e+00]])
+sform = np.array([[1, 0, 0, 0],
+ [0, 1, 0, 0],
+ [0, 0, 1, 0],
+ [0.00000000e+00, 0.00000000e+00, 0.00000000e+00,1.00000000e+00]])
+
@pytest.mark.parametrize('qform_add, sform_add, expectation', [
(0, 0, "no_warn"),
@@ -35,8 +28,8 @@ sform=np.array([[ 1, 0, 0,
(0, 1e-5, "warn"),
(1e-3, 1e-3, "no_warn")
])
-#just a diagonal of ones in both and see that this doesn't warn, then exercise the other possibilities
-#only look at the 2 areas of images.py that I added and get code overage of those
+# just a diagonal of ones in qform and sform and see that this doesn't warn
+# only look at the 2 areas of images.py that I added and get code coverage of those
def test_qformsform_warning(tmpdir, qform_add, sform_add, expectation):
tmpdir.chdir()
@@ -57,6 +50,7 @@ def test_qformsform_warning(tmpdir, qform_add, sform_add, expectation):
elif expectation == 'no_warn':
assert len(Path(res.outputs.out_report).read_text()) == 0
+
@pytest.mark.parametrize('nvols, nmasks, ext, factor', [
(500, 10, '.nii', 2),
(500, 10, '.nii.gz', 5),
