We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2575f3d commit 0a2ff69Copy full SHA for 0a2ff69
nipype/interfaces/dipy/stats.py
@@ -0,0 +1,20 @@
1
+
2
+from distutils.version import LooseVersion
3
+from ... import logging
4
+from .base import (HAVE_DIPY, dipy_version, dipy_to_nipype_interface,
5
+ get_dipy_workflows)
6
7
+IFLOGGER = logging.getLogger('nipype.interface')
8
9
+if HAVE_DIPY and LooseVersion(dipy_version()) >= LooseVersion('0.15'):
10
+ from dipy.workflows import stats
11
12
+ l_wkflw = get_dipy_workflows(stats)
13
+ for name, obj in l_wkflw:
14
+ new_name = name.replace('Flow', '')
15
+ globals()[new_name] = dipy_to_nipype_interface(new_name, obj)
16
+ del l_wkflw
17
18
+else:
19
+ IFLOGGER.info("We advise you to upgrade DIPY version. This upgrade will"
20
+ " open access to more function")
0 commit comments