Skip to content

Commit dcf44b5

Browse files
committed
Merge branch 'master' of https://github.com/nipy/nipype
2 parents 87682ae + 70f4f7f commit dcf44b5

File tree

175 files changed

+12412
-2110
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

175 files changed

+12412
-2110
lines changed

.noserc

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
[nosetests]
2+
verbosity=3
3+
4+
with-coverage=1
5+
cover-branches=1
6+
cover-xml=1
7+
cover-xml-file=./coverage.xml
8+
cover-min-percentage=50
9+
10+
11+
with-xunit=1

.travis.yml

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,22 +16,43 @@ before_install:
1616
- if [ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]; then export PATH=/home/travis/miniconda2/bin:$PATH; else export PATH=/home/travis/miniconda3/bin:$PATH; fi
1717
- if $INSTALL_DEB_DEPENDECIES; then sudo rm -rf /dev/shm; fi
1818
- if $INSTALL_DEB_DEPENDECIES; then sudo ln -s /run/shm /dev/shm; fi
19-
- if $INSTALL_DEB_DEPENDECIES; then bash <(wget -q -O- http://neuro.debian.net/_files/neurodebian-travis.sh);
20-
fi
19+
- bash <(wget -q -O- http://neuro.debian.net/_files/neurodebian-travis.sh)
20+
- sudo apt-get update
21+
- sudo apt-get install xvfb
2122
- if $INSTALL_DEB_DEPENDECIES; then travis_retry sudo apt-get install -qq --no-install-recommends
2223
fsl afni elastix; fi
2324
- if $INSTALL_DEB_DEPENDECIES; then travis_retry sudo apt-get install -qq fsl-atlases;
2425
fi
2526
- if $INSTALL_DEB_DEPENDECIES; then source /etc/fsl/fsl.sh; fi
27+
- if $INSTALL_DEB_DEPENDECIES; then source /etc/afni/afni.sh; fi
28+
- export FSLOUTPUTTYPE=NIFTI_GZ
29+
# Install vtk and fix numpy installation problem
30+
# Fix numpy problem: https://github.com/enthought/enable/issues/34#issuecomment-2029381
31+
- if [ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]; then travis_retry sudo apt-get install -qq libx11-dev swig;
32+
echo '[x11]' >> $HOME/.numpy-site.cfg;
33+
echo 'library_dirs = /usr/lib64:/usr/lib:/usr/lib/x86_64-linux-gnu' >> $HOME/.numpy-site.cfg;
34+
echo 'include_dirs = /usr/include:/usr/include/X11' >> $HOME/.numpy-site.cfg;
35+
fi
2636
install:
2737
- conda update --yes conda
2838
- conda create -n testenv --yes pip python=$TRAVIS_PYTHON_VERSION
2939
- source activate testenv
3040
- if [ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]; then pip install ordereddict; fi
3141
- conda install --yes numpy scipy nose networkx dateutil
3242
- if [ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]; then conda install --yes traits; else pip install traits; fi
43+
- if [ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]; then conda install --yes vtk; fi
3344
- pip install python-coveralls
3445
- pip install nose-cov
46+
# Add tvtk (PIL is required by blockcanvas)
47+
# Install mayavi (see https://github.com/enthought/mayavi/issues/271)
48+
- if [ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]; then
49+
pip install http://effbot.org/downloads/Imaging-1.1.7.tar.gz;
50+
pip install -e git+https://github.com/enthought/etsdevtools.git#egg=etsdevtools;
51+
pip install -e git+https://github.com/enthought/blockcanvas.git#egg=blockcanvas;
52+
pip install -e git+https://github.com/enthought/etsproxy.git#egg=etsproxy;
53+
pip install https://github.com/dmsurti/mayavi/archive/4d4aaf315a29d6a86707dd95149e27d9ed2225bf.zip;
54+
pip install -e git+https://github.com/enthought/ets.git#egg=ets;
55+
fi
3556
- pip install -r requirements.txt # finish remaining requirements
3657
- python setup.py install
3758
script:

CHANGES

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,19 @@
11
Next release
22
============
33

4+
* FIX: job execution on systems/approaches where locale is undefined (https://github.com/nipy/nipype/pull/1401)
5+
* FIX: Clean up byte/unicode issues using subprocess (https://github.com/nipy/nipype/pull/1394)
6+
* FIX: Prevent crash when tvtk is loaded - ETS_TOOLKIT=null (https://github.com/nipy/nipype/pull/973)
7+
* ENH: New interfaces in dipy: RESTORE, EstimateResponseSH, CSD and StreamlineTractography
8+
(https://github.com/nipy/nipype/pull/1090)
9+
* ENH: Added interfaces of AFNI (https://github.com/nipy/nipype/pull/1360,
10+
https://github.com/nipy/nipype/pull/1361, https://github.com/nipy/nipype/pull/1382)
11+
* ENH: Provides a Nipype wrapper for antsJointFusion (https://github.com/nipy/nipype/pull/1351)
12+
* ENH: Added support for PETPVC (https://github.com/nipy/nipype/pull/1335)
13+
* ENH: Merge S3DataSink into DataSink, added AWS documentation (https://github.com/nipy/nipype/pull/1316)
14+
* TST: Cache APT in CircleCI (https://github.com/nipy/nipype/pull/1333)
15+
* ENH: Add new flags to the BRAINSABC for new features (https://github.com/nipy/nipype/pull/1322)
16+
* ENH: Provides a Nipype wrapper for ANTs DenoiseImage (https://github.com/nipy/nipype/pull/1291)
417
* FIX: Minor bugfix logging hash differences (https://github.com/nipy/nipype/pull/1298)
518
* FIX: Use released Prov python library (https://github.com/nipy/nipype/pull/1279)
619
* ENH: Support for Python 3 (https://github.com/nipy/nipype/pull/1221)
@@ -9,7 +22,8 @@ Next release
922
* ENH: New ANTs interface: antsBrainExtraction (https://github.com/nipy/nipype/pull/1231)
1023
* API: Default model level for the bedpostx workflow has been set to "2" following FSL 5.0.9 lead
1124
* ENH: New interfaces for interacting with AWS S3: S3DataSink and S3DataGrabber (https://github.com/nipy/nipype/pull/1201)
12-
25+
* ENH: Interfaces for MINC tools (https://github.com/nipy/nipype/pull/1304)
26+
* FIX: Use realpath to determine hard link source (https://github.com/nipy/nipype/pull/1388)
1327

1428
Release 0.11.0 (September 15, 2015)
1529
============

bin/nipype2boutiques

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!python
22
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
33
# vi: set ft=python sts=4 ts=4 sw=4 et:
44
import sys

bin/nipype_cmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!python
22
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
33
# vi: set ft=python sts=4 ts=4 sw=4 et:
44
import sys

bin/nipype_display_crash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!python
22
"""Displays crash information from Nipype crash files. For certain crash files,
33
one can rerun a failed node in a temp directory.
44

circle.yml

Lines changed: 35 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,83 +1,77 @@
11
dependencies:
22
cache_directories:
3+
- "~/.apt-cache"
34
- "~/examples/data"
45
- "~/examples/fsdata"
5-
- "~/examples/feeds"
66
- "~/mcr"
77
- "~/spm12"
8-
- "~/fsl"
98
- "~/examples/fsl_course_data"
9+
pre:
10+
# Let CircleCI cache the apt archive
11+
- sudo rm -rf /var/cache/apt/archives && sudo ln -s ~/.apt-cache /var/cache/apt/archives && mkdir -p ~/.apt-cache/partial
12+
- bash <(wget -q -O- http://neuro.debian.net/_files/neurodebian-travis.sh)
1013
override:
14+
# Install apt packages
15+
- sudo apt-get install -y fsl-core fsl-atlases fsl-mni152-templates fsl-feeds afni swig python-vtk xvfb
16+
- echo 'source /etc/fsl/fsl.sh' >> $HOME/.profile
17+
- echo 'source /etc/afni/afni.sh' >> $HOME/.profile
18+
- mkdir -p ~/examples/ && ln -sf /usr/share/fsl-feeds/ ~/examples/feeds
19+
# Enable system-wide vtk
20+
- ln -sf /usr/lib/pymodules/python2.7/vtk ~/virtualenvs/venv-system/lib/python2.7/site-packages/
21+
# Set up python environment
1122
- pip install --upgrade pip
1223
- pip install -e .
13-
- pip install matplotlib sphinx ipython boto
24+
- pip install matplotlib sphinx ipython boto coverage dipy
25+
# Add tvtk
26+
- pip install http://effbot.org/downloads/Imaging-1.1.7.tar.gz
27+
- pip install -e git+https://github.com/enthought/etsdevtools.git#egg=etsdevtools
28+
- pip install -e git+https://github.com/enthought/blockcanvas.git#egg=blockcanvas
29+
- pip install -e git+https://github.com/enthought/etsproxy.git#egg=etsproxy
30+
- pip install -e git+https://github.com/enthought/ets.git#egg=ets
1431
- gem install fakes3
15-
- if [[ ! -d ~/fsl ]]; then wget "http://fsl.fmrib.ox.ac.uk/fsldownloads/fsl-5.0.9-centos6_64.tar.gz"; tar zxvf fsl-5.0.9-centos6_64.tar.gz; mv fsl ~/fsl; fi
16-
- if [[ ! -d ~/examples/data ]]; then wget "http://tcpdiag.dl.sourceforge.net/project/nipy/nipype/nipype-0.2/nipype-tutorial.tar.bz2"; tar jxvf nipype-tutorial.tar.bz2; mkdir ~/examples; mv nipype-tutorial/* ~/examples/; fi
17-
# we download this manually because CircleCI does not cache apt
18-
- if [[ ! -d ~/examples/feeds ]]; then wget "http://fsl.fmrib.ox.ac.uk/fsldownloads/fsl-5.0.9-feeds.tar.gz"; tar zxvf fsl-5.0.9-feeds.tar.gz; mv feeds ~/examples/; fi
19-
- if [[ ! -d ~/examples/fsl_course_data ]]; then wget -c "http://fsl.fmrib.ox.ac.uk/fslcourse/fdt1.tar.gz" ; wget -c "http://fsl.fmrib.ox.ac.uk/fslcourse/fdt2.tar.gz"; wget -c "http://fsl.fmrib.ox.ac.uk/fslcourse/tbss.tar.gz"; mkdir ~/examples/fsl_course_data; tar zxvf fdt1.tar.gz -C ~/examples/fsl_course_data; tar zxvf fdt2.tar.gz -C ~/examples/fsl_course_data; tar zxvf tbss.tar.gz -C ~/examples/fsl_course_data; fi
32+
- if [[ ! -d ~/examples/data ]]; then wget "https://dl.dropbox.com/s/jzgq2nupxyz36bp/nipype-tutorial.tar.bz2" && tar jxvf nipype-tutorial.tar.bz2 && mv nipype-tutorial/* ~/examples/; fi
33+
- if [[ ! -d ~/examples/fsl_course_data ]]; then wget -c "http://fsl.fmrib.ox.ac.uk/fslcourse/fdt1.tar.gz" && wget -c "http://fsl.fmrib.ox.ac.uk/fslcourse/fdt2.tar.gz" && wget -c "http://fsl.fmrib.ox.ac.uk/fslcourse/tbss.tar.gz" && mkdir ~/examples/fsl_course_data && tar zxvf fdt1.tar.gz -C ~/examples/fsl_course_data && tar zxvf fdt2.tar.gz -C ~/examples/fsl_course_data && tar zxvf tbss.tar.gz -C ~/examples/fsl_course_data; fi
2034
- bash ~/nipype/tools/install_spm_mcr.sh
21-
- mkdir -p ~/.nipype && echo "[logging]" > ~/.nipype/nipype.cfg && echo "workflow_level = DEBUG" >> ~/.nipype/nipype.cfg && echo "interface_level = DEBUG" >> ~/.nipype/nipype.cfg && echo "filemanip_level = DEBUG" >> ~/.nipype/nipype.cfg
35+
- mkdir -p ~/.nipype && echo '[logging]' > ~/.nipype/nipype.cfg && echo 'workflow_level = DEBUG' >> ~/.nipype/nipype.cfg && echo 'interface_level = DEBUG' >> ~/.nipype/nipype.cfg && echo 'filemanip_level = DEBUG' >> ~/.nipype/nipype.cfg
36+
machine:
37+
environment:
38+
FSLOUTPUTTYPE: NIFTI_GZ
2239
test:
2340
override:
24-
- nosetests --with-doctest --logging-level=DEBUG --verbosity=3:
41+
- mkdir -p ${CIRCLE_TEST_REPORTS}/nose
42+
- source $HOME/.profile; nosetests --with-doctest --xunit-file="${CIRCLE_TEST_REPORTS}/nose/${CIRCLE_PROJECT_REPONAME}.xml" -c ./.noserc --logging-level=DEBUG --verbosity=3:
2543
environment:
2644
SPMMCRCMD: "$HOME/spm12/run_spm12.sh $HOME/mcr/v85/ script"
2745
FORCE_SPMMCR: 1
2846
FSL_COURSE_DATA: "$HOME/examples/fsl_course_data"
29-
FSLDIR: "$HOME/fsl/"
30-
PATH: "$HOME/fsl/bin:$PATH"
31-
LD_LIBRARY_PATH: "$HOME/fsl/lib"
32-
FSLOUTPUTTYPE: "NIFTI_GZ"
3347
timeout: 2600
3448
- set -o pipefail && cd doc && make html 2>&1 | tee ~/log.txt
3549
- cat ~/log.txt && if grep -q "ERROR" ~/log.txt; then false; else true; fi
36-
- python ~/nipype/tools/run_examples.py test_spm Linear workflow3d workflow4d:
50+
- source $HOME/.profile; python ~/nipype/tools/run_examples.py test_spm Linear workflow3d workflow4d:
3751
pwd: ../examples
3852
environment:
3953
SPMMCRCMD: "$HOME/spm12/run_spm12.sh $HOME/mcr/v85/ script"
4054
FORCE_SPMMCR: 1
41-
FSLDIR: "$HOME/fsl/"
42-
PATH: "$HOME/fsl/bin:$PATH"
43-
LD_LIBRARY_PATH: "$HOME/fsl/lib"
44-
FSLOUTPUTTYPE: "NIFTI_GZ"
4555
timeout: 1600
46-
- python ~/nipype/tools/run_examples.py fmri_fsl_feeds Linear l1pipeline:
56+
- source $HOME/.profile; python ~/nipype/tools/run_examples.py fmri_fsl_feeds Linear l1pipeline:
4757
pwd: ../examples
48-
environment:
49-
FSLDIR: "$HOME/fsl/"
50-
PATH: "$HOME/fsl/bin:$PATH"
51-
LD_LIBRARY_PATH: "$HOME/fsl/lib"
52-
FSLOUTPUTTYPE: "NIFTI_GZ"
53-
- python ~/nipype/tools/run_examples.py fmri_spm_dartel Linear level1 l2pipeline:
58+
- source $HOME/.profile; python ~/nipype/tools/run_examples.py fmri_spm_dartel Linear level1 l2pipeline:
5459
pwd: ../examples
5560
environment:
5661
SPMMCRCMD: "$HOME/spm12/run_spm12.sh $HOME/mcr/v85/ script"
5762
FORCE_SPMMCR: 1
58-
FSLDIR: "$HOME/fsl/"
59-
PATH: "$HOME/fsl/bin:$PATH"
60-
LD_LIBRARY_PATH: "$HOME/fsl/lib"
61-
FSLOUTPUTTYPE: "NIFTI_GZ"
6263
timeout: 1600
63-
- python ~/nipype/tools/run_examples.py fmri_fsl_reuse Linear level1_workflow:
64+
- source $HOME/.profile; python ~/nipype/tools/run_examples.py fmri_fsl_reuse Linear level1_workflow:
6465
pwd: ../examples
65-
environment:
66-
FSLDIR: "$HOME/fsl/"
67-
PATH: "$HOME/fsl/bin:$PATH"
68-
LD_LIBRARY_PATH: "$HOME/fsl/lib"
69-
FSLOUTPUTTYPE: "NIFTI_GZ"
70-
- python ~/nipype/tools/run_examples.py fmri_spm_nested Linear level1 l2pipeline:
66+
- source $HOME/.profile; python ~/nipype/tools/run_examples.py fmri_spm_nested Linear level1 l2pipeline:
7167
pwd: ../examples
7268
environment:
7369
SPMMCRCMD: "$HOME/spm12/run_spm12.sh $HOME/mcr/v85/ script"
7470
FORCE_SPMMCR: 1
75-
FSLDIR: "$HOME/fsl/"
76-
PATH: "$HOME/fsl/bin:$PATH"
77-
LD_LIBRARY_PATH: "$HOME/fsl/lib"
78-
FSLOUTPUTTYPE: "NIFTI_GZ"
7971

8072
general:
8173
artifacts:
8274
- "doc/_build/html"
8375
- "~/log.txt"
76+
- "nosetests.xml"
77+
- "coverage.xml"

doc/devel/cmd_interface_devel.rst

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -198,11 +198,13 @@ output_name (optional)
198198
name of the output (if this is not set same name as the input will be
199199
assumed)
200200

201-
keep_extension (optional - not used)
202-
if you want the extension from the input to be kept
201+
keep_extension (optional)
202+
if you want the extension from the input or name_template to be kept. The
203+
name_template extension always overrides the input extension.
203204

204205
In addition one can add functionality to your class or base class, to allow
205-
changing extensions specific to package or interface
206+
changing extensions specific to package or interface. This overload function is
207+
trigerred only if keep_extension is not defined.
206208

207209
.. testcode::
208210

doc/documentation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Documentation
99
:Release: |version|
1010
:Date: |today|
1111

12-
Previous versions: `0.10.0 <http://nipy.org/nipype/0.10.0>`_ `0.9.2 <http://nipy.org/nipype/0.9.2>`_
12+
Previous versions: `0.11.0 <http://nipy.org/nipype/0.11.0>`_ `0.10.0 <http://nipy.org/nipype/0.10.0>`_
1313

1414
.. container:: doc2
1515

doc/links_names.txt

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
.. _pylint: http://www.logilab.org/project/pylint
4747
.. _pyflakes: http://divmod.org/trac/wiki/DivmodPyflakes
4848
.. _virtualenv: http://pypi.python.org/pypi/virtualenv
49-
.. _git: http://git.or.cz/
49+
.. _git: https://git-scm.com/
5050
.. _flymake: http://flymake.sourceforge.net/
5151
.. _rope: http://rope.sourceforge.net/
5252
.. _pymacs: http://pymacs.progiciels-bpi.ca/pymacs.html
@@ -60,21 +60,21 @@
6060
.. _`python coverage tester`: http://nedbatchelder.com/code/modules/coverage.html
6161

6262
.. Other python projects
63-
.. _numpy: http://www.scipy.org/NumPy
63+
.. _numpy: http://www.numpy.org/
6464
.. _scipy: http://www.scipy.org
65-
.. _ipython: http://ipython.scipy.org
66-
.. _`ipython manual`: http://ipython.scipy.org/doc/manual/html
67-
.. _matplotlib: http://matplotlib.sourceforge.net
65+
.. _ipython: https://ipython.org
66+
.. _`ipython manual`: https://ipython.readthedocs.org/en/stable/
67+
.. _matplotlib: http://matplotlib.org/
6868
.. _ETS: http://code.enthought.com/projects/tool-suite.php
6969
.. _`Enthought Tool Suite`: http://code.enthought.com/projects/tool-suite.php
7070
.. _python: http://www.python.org
7171
.. _mayavi: http://mayavi.sourceforge.net/
72-
.. _sympy: http://code.google.com/p/sympy/
73-
.. _networkx: http://networkx.lanl.gov/
74-
.. _pythonxy: http://www.pythonxy.com/
72+
.. _sympy: http://www.sympy.org/
73+
.. _networkx: https://networkx.github.io/
74+
.. _pythonxy: https://python-xy.github.io/
7575
.. _EPD: http://www.enthought.com/products/epd.php
7676
.. _Traits: http://code.enthought.com/projects/traits/
77-
.. _Anaconda: https://store.continuum.io/cshop/anaconda/
77+
.. _Anaconda: https://www.continuum.io/downloads
7878
.. _Canopy: https://www.enthought.com/products/canopy/
7979

8080
.. Python imaging projects

0 commit comments

Comments
 (0)