Set package_version in RobustMNINormalizationInputSpec
@@ -8,6 +8,7 @@ from os import path as op
import shutil
import pkg_resources as pkgr
from multiprocessing import cpu_count
+from distutils.version import LooseVersion
from nipype.interfaces.ants.registration import Registration, RegistrationOutputSpec
from nipype.interfaces.ants.resampling import ApplyTransforms
@@ -16,12 +17,18 @@ from nipype.interfaces.base import (traits, isdefined, BaseInterface, BaseInterf
File, InputMultiPath)
from niworkflows.data import getters
-from niworkflows import __packagename__, NIWORKFLOWS_LOG
+from niworkflows import __packagename__, NIWORKFLOWS_LOG, __version__
+
+niworkflows_version = LooseVersion(__version__)
+
import nibabel as nb
import numpy as np
class RobustMNINormalizationInputSpec(BaseInterfaceInputSpec):
+ # Enable deprecation
+ package_version = niworkflows_version
+
moving_image = File(exists=True, mandatory=True, desc='image to apply transformation to')
reference_image = File(exists=True, desc='override the reference image')
moving_mask = File(exists=True, desc='moving image mask')
