Skip to content

Commit f6a3f0f

Browse files
committed
Fix small bug/typo in misc.CreateNifti
1 parent f11a457 commit f6a3f0f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nipype/algorithms/misc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ def _run_interface(self, runtime):
245245
else:
246246
affine = None
247247

248-
with open(self.inputs.header_file, 'rb') as data_file:
248+
with open(self.inputs.data_file, 'rb') as data_file:
249249
data = hdr.data_from_fileobj(data_file)
250250

251251
img = nb.Nifti1Image(data, affine, hdr)

0 commit comments

Comments
 (0)