Skip to content

Commit 6c0a372

Browse files
Simplify test_DerivativesDataSink_data_dtype_source
Co-authored-by: Chris Markiewicz <[email protected]>
1 parent 1540f2d commit 6c0a372

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

niworkflows/interfaces/tests/test_bids.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -521,11 +521,7 @@ def make_empty_nii_with_dtype(fname, dtype):
521521

522522
size = (30, 30, 30, 10)
523523

524-
hdr = nb.Nifti1Header()
525-
hdr.set_qform(np.eye(4), code=0)
526-
hdr.set_sform(np.eye(4), code=2)
527-
hdr.set_data_dtype(dtype)
528-
nb.Nifti1Image(np.zeros(size, dtype=dtype), np.eye(4), hdr).to_filename(fname)
524+
nb.Nifti1Image(np.zeros(size, dtype=dtype), np.eye(4)).to_filename(fname)
529525

530526
in_file = str(tmp_path / "in.nii")
531527
make_empty_nii_with_dtype(in_file, in_dtype)

0 commit comments

Comments
 (0)