Skip to content

Commit 0a2ff69

Browse files
committed
add stats cmd line
1 parent 2575f3d commit 0a2ff69

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

nipype/interfaces/dipy/stats.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)