Skip to content

Commit 719ed94

Browse files
committed
fix: version property
1 parent 8182ab3 commit 719ed94

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

nipype/interfaces/nipy/preprocess.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
else:
2424
import nipy
2525
from nipy import save_image, load_image
26+
nipy_version = nipy.__version__
2627

2728
from ..base import (TraitedSpec, BaseInterface, traits,
2829
BaseInterfaceInputSpec, isdefined, File,
@@ -273,8 +274,9 @@ class SpaceTimeRealigner(BaseInterface):
273274
output_spec = SpaceTimeRealignerOutputSpec
274275
keywords = ['slice timing', 'motion correction']
275276

277+
@property
276278
def version(self):
277-
return nipy.__version__
279+
return nipy_version
278280

279281
def _run_interface(self, runtime):
280282
all_ims = [load_image(fname) for fname in self.inputs.in_file]

0 commit comments

Comments
 (0)