4a06c7d44e
Package-Manager: Portage-3.0.0, Repoman-2.3.23 Signed-off-by: Horea Christian <chr@chymera.eu>
19 lines
943 B
Diff
19 lines
943 B
Diff
--- a/nipype/interfaces/base/core.py 2020-08-06 02:07:56.750154463 -0400
|
|
+++ b/nipype/interfaces/base/core.py 2020-08-07 00:56:11.748074237 -0400
|
|
@@ -276,6 +276,15 @@
|
|
version = LooseVersion(str(self.version))
|
|
for name in names:
|
|
min_ver = LooseVersion(str(trait_object.traits()[name].min_ver))
|
|
+ try:
|
|
+ min_ver > version
|
|
+ except TypeError:
|
|
+ iflogger.warning(
|
|
+ 'Nipype is having issues parsing the package version '
|
|
+ 'for Trait {} ({})'
|
|
+ 'You may want to check whehter {} is larger than {}'
|
|
+ .format(name, self.__class__.__name__, version, min_ver)
|
|
+ )
|
|
if min_ver > version:
|
|
unavailable_traits.append(name)
|
|
if not isdefined(getattr(trait_object, name)):
|