Skip to content

Commit e28cd05

Browse files
committed
fix: dcm2niix test
1 parent 681d69c commit e28cd05

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

nipype/interfaces/tests/test_extra_dcm2nii.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,17 +41,15 @@ def assert_dwi(eg, bids):
4141
# ensure all outputs are of equal lengths
4242
assert len(set(map(len, outputs))) == 1
4343
else:
44-
assert not eg2.outputs.bids
44+
assert not eg.outputs.bids
4545

4646
dcm = Dcm2niix()
4747
dcm.inputs.source_dir = datadir
4848
dcm.inputs.out_filename = '%u%z'
49-
eg1 = dcm.run()
50-
assert_dwi(eg1, True)
49+
assert_dwi(dcm.run(), True)
5150

5251
# now run specifying output directory and removing BIDS option
5352
outdir = tmpdir.mkdir('conversion').strpath
5453
dcm.inputs.output_dir = outdir
5554
dcm.inputs.bids_format = False
56-
eg2 = dcm.run()
57-
assert_dwi(eg2, False)
55+
assert_dwi(dcm.run(), False)

0 commit comments

Comments
 (0)