Skip to content

Commit cb072a7

Browse files
committed
Merge branch 'master' of https://github.com/nipy/nipype
2 parents 3c4d1de + 3ed411b commit cb072a7

31 files changed

+727
-287
lines changed

.noserc

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
[nosetests]
22
verbosity=3
33

4+
logging-level=DEBUG
5+
with-doctest=1
6+
with-xunit=1
47
with-coverage=1
58
cover-branches=1
69
cover-xml=1
7-
cover-xml-file=./coverage.xml
810
cover-min-percentage=50
9-
10-
11-
with-xunit=1

CHANGES

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1-
Release 0.12.0-rc2 (June 19, 2016)
2-
============
1+
Upcoming release 0.13
2+
=====================
3+
4+
5+
Release 0.12.0 (July 12, 2016)
6+
==============================
37

48
* ENH: New interface for Bruker to Nifti converter (https://github.com/nipy/nipype/pull/1523)
59
* FIX: output file naming for FIRST outputs (https://github.com/nipy/nipype/pull/1524)
@@ -41,7 +45,7 @@ Release 0.12.0-rc2 (June 19, 2016)
4145
(https://github.com/nipy/nipype/pull/1460)
4246

4347
Release 0.11.0 (September 15, 2015)
44-
============
48+
===================================
4549

4650
* API: Change how hash values are computed (https://github.com/nipy/nipype/pull/1174)
4751
* ENH: New algorithm: mesh.WarpPoints applies displacements fields to point sets
@@ -127,7 +131,7 @@ Release 0.11.0 (September 15, 2015)
127131
(https://github.com/nipy/nipype/pull/1142)
128132

129133
Release 0.10.0 (October 10, 2014)
130-
============
134+
=================================
131135

132136
* ENH: New miscelaneous interfaces: SplitROIs (mapper), MergeROIs (reducer)
133137
to enable parallel processing of very large images.
@@ -171,19 +175,19 @@ Release 0.10.0 (October 10, 2014)
171175
* FIX: Update for FSL 5.0.7 which deprecated Contrast Manager
172176

173177
Release 0.9.2 (January 31, 2014)
174-
============
178+
================================
175179

176180
* FIX: DataFinder was broken due to a typo
177181
* FIX: Order of DataFinder outputs was not guaranteed, it's human sorted now
178182
* ENH: New interfaces: Vnifti2Image, VtoMat
179183

180184
Release 0.9.1 (December 25, 2013)
181-
============
185+
=================================
182186

183187
* FIX: installation issues
184188

185189
Release 0.9.0 (December 20, 2013)
186-
============
190+
=================================
187191

188192
* ENH: SelectFiles: a streamlined version of DataGrabber
189193
* ENH: new tools for defining workflows: JoinNode, synchronize and itersource

Dockerfile

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
# Copyright (c) 2016, The developers of the Stanford CRN
2+
# All rights reserved.
3+
#
4+
# Redistribution and use in source and binary forms, with or without
5+
# modification, are permitted provided that the following conditions are met:
6+
#
7+
# * Redistributions of source code must retain the above copyright notice, this
8+
# list of conditions and the following disclaimer.
9+
#
10+
# * Redistributions in binary form must reproduce the above copyright notice,
11+
# this list of conditions and the following disclaimer in the documentation
12+
# and/or other materials provided with the distribution.
13+
#
14+
# * Neither the name of crn_base nor the names of its
15+
# contributors may be used to endorse or promote products derived from
16+
# this software without specific prior written permission.
17+
#
18+
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
19+
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20+
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21+
# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
22+
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23+
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
24+
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
25+
# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
26+
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27+
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28+
29+
FROM nipype/testnipypedata:latest
30+
MAINTAINER Stanford Center for Reproducible Neuroscience <[email protected]>
31+
32+
# Preparations
33+
RUN ln -snf /bin/bash /bin/sh
34+
35+
# Install this branch's code
36+
WORKDIR /root/src
37+
38+
# Install matplotlib, sphinx and coverage to build documentation
39+
# and run tests with coverage
40+
RUN source activate nipypetests-2.7 && \
41+
pip install matplotlib sphinx coverage && \
42+
source activate nipypetests-3.4 && \
43+
pip install matplotlib sphinx coverage && \
44+
source activate nipypetests-3.5 && \
45+
pip install matplotlib sphinx coverage
46+
47+
ADD . nipype/
48+
49+
# Install the checked out version of nipype, check that requirements are
50+
# installed and install it for each of the three environments.
51+
RUN cd nipype/ && \
52+
source activate nipypetests-2.7 && \
53+
pip install -r requirements.txt && \
54+
pip install -e .
55+
56+
RUN cd nipype/ && \
57+
source activate nipypetests-3.4 && \
58+
pip install -r requirements.txt && \
59+
pip install -e .
60+
61+
RUN cd nipype/ && \
62+
source activate nipypetests-3.5 && \
63+
pip install -r requirements.txt && \
64+
pip install -e .
65+
66+
WORKDIR /scratch
67+
68+
# Install entrypoints
69+
ADD docker/circleci/run_* /usr/bin/
70+
RUN chmod +x /usr/bin/run_*
71+
72+
# RUN echo 'source /etc/profile.d/nipype_tests.sh' >> /etc/bash.bashrc
73+
ENTRYPOINT ["/usr/bin/run_examples.sh"]
74+

README.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,6 @@ NIPYPE: Neuroimaging in Python: Pipelines and Interfaces
1818
:target: https://pypi.python.org/pypi/nipype/
1919
:alt: Latest Version
2020

21-
.. image:: https://img.shields.io/pypi/dm/nipype.svg
22-
:target: https://pypi.python.org/pypi/nipype/
23-
:alt: Downloads
24-
2521
.. image:: https://img.shields.io/pypi/pyversions/nipype.svg
2622
:target: https://pypi.python.org/pypi/nipype/
2723
:alt: Supported Python versions

circle.yml

Lines changed: 35 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -1,78 +1,46 @@
1+
machine:
2+
services:
3+
- docker
4+
15
dependencies:
26
cache_directories:
3-
- "~/.apt-cache"
4-
- "~/examples/data"
5-
- "~/examples/fsdata"
6-
- "~/mcr"
7-
- "~/spm12"
8-
- "~/examples/fsl_course_data"
7+
- "~/docker"
8+
99
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)
10+
- mkdir -p "~/scratch/nose"
11+
1312
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 fusefat
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
22-
- pip install --upgrade pip
23-
- pip install -e .
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
31-
- pip install https://github.com/rtfd/readthedocs-sphinx-ext/archive/master.zip
32-
- gem install fakes3
33-
- 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
34-
- 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
35-
- bash ~/nipype/tools/install_spm_mcr.sh
36-
- 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
37-
machine:
38-
environment:
39-
FSLOUTPUTTYPE: NIFTI_GZ
13+
- if [[ -e ~/docker/image.tar ]]; then docker load -i ~/docker/image.tar; fi
14+
- docker build -t nipype/testbench:latest . :
15+
timeout: 1600
16+
- mkdir -p ~/docker; docker save nipype/testbench:latest > ~/docker/image.tar :
17+
timeout: 1600
18+
4019
test:
4120
override:
42-
- mkdir -p ${CIRCLE_TEST_REPORTS}/nose
43-
- source $HOME/.profile; nosetests --with-doctest --xunit-file="${CIRCLE_TEST_REPORTS}/nose/${CIRCLE_PROJECT_REPONAME}.xml" -c ./.noserc --logging-level=DEBUG --verbosity=3:
44-
environment:
45-
SPMMCRCMD: "$HOME/spm12/run_spm12.sh $HOME/mcr/v85/ script"
46-
FORCE_SPMMCR: 1
47-
FSL_COURSE_DATA: "$HOME/examples/fsl_course_data"
48-
timeout: 2600
49-
- set -o pipefail && cd doc && make html 2>&1 | tee ~/log.txt
50-
- cat ~/log.txt && if grep -q "ERROR" ~/log.txt; then false; else true; fi
51-
- source $HOME/.profile; python ~/nipype/tools/run_examples.py test_spm Linear workflow3d workflow4d:
52-
pwd: ../examples
53-
environment:
54-
SPMMCRCMD: "$HOME/spm12/run_spm12.sh $HOME/mcr/v85/ script"
55-
FORCE_SPMMCR: 1
21+
- docker run -i -v /etc/localtime:/etc/localtime:ro -v ~/scratch:/scratch -w /scratch --entrypoint="/usr/bin/run_builddocs.sh" nipype/testbench
22+
- docker run -i -v /etc/localtime:/etc/localtime:ro -v ~/scratch:/scratch -w /scratch nipype/testbench test_spm Linear /root/examples/ workflow3d :
5623
timeout: 1600
57-
- source $HOME/.profile; python ~/nipype/tools/run_examples.py fmri_fsl_feeds Linear l1pipeline:
58-
pwd: ../examples
59-
- source $HOME/.profile; python ~/nipype/tools/run_examples.py fmri_spm_dartel Linear level1 l2pipeline:
60-
pwd: ../examples
61-
environment:
62-
SPMMCRCMD: "$HOME/spm12/run_spm12.sh $HOME/mcr/v85/ script"
63-
FORCE_SPMMCR: 1
24+
- docker run -i -v /etc/localtime:/etc/localtime:ro -v ~/scratch:/scratch -w /scratch nipype/testbench test_spm Linear /root/examples/ workflow4d :
6425
timeout: 1600
65-
- source $HOME/.profile; python ~/nipype/tools/run_examples.py fmri_fsl_reuse Linear level1_workflow:
66-
pwd: ../examples
67-
- source $HOME/.profile; python ~/nipype/tools/run_examples.py fmri_spm_nested Linear level1 l2pipeline:
68-
pwd: ../examples
69-
environment:
70-
SPMMCRCMD: "$HOME/spm12/run_spm12.sh $HOME/mcr/v85/ script"
71-
FORCE_SPMMCR: 1
26+
- docker run -i -v /etc/localtime:/etc/localtime:ro -v ~/scratch:/scratch -w /scratch nipype/testbench fmri_fsl_feeds Linear /root/examples/ l1pipeline
27+
- docker run -i -v /etc/localtime:/etc/localtime:ro -v ~/scratch:/scratch -w /scratch nipype/testbench fmri_spm_dartel Linear /root/examples/ level1 :
28+
timeout: 1600
29+
- docker run -i -v /etc/localtime:/etc/localtime:ro -v ~/scratch:/scratch -w /scratch nipype/testbench fmri_spm_dartel Linear /root/examples/ l2pipeline :
30+
timeout: 1600
31+
- docker run -i -v /etc/localtime:/etc/localtime:ro -v ~/scratch:/scratch -w /scratch nipype/testbench fmri_fsl_reuse Linear /root/examples/ level1_workflow
32+
- docker run -i -v /etc/localtime:/etc/localtime:ro -v ~/scratch:/scratch -w /scratch nipype/testbench fmri_spm_nested Linear /root/examples/ level1
33+
- docker run -i -v /etc/localtime:/etc/localtime:ro -v ~/scratch:/scratch -w /scratch nipype/testbench fmri_spm_nested Linear /root/examples/ l2pipeline
34+
- docker run -i -v /etc/localtime:/etc/localtime:ro -v ~/scratch:/scratch -w /scratch --entrypoint="/usr/bin/run_nosetests.sh" nipype/testbench :
35+
timeout: 2600
36+
post:
37+
- bash docker/circleci/teardown.sh
7238

7339
general:
7440
artifacts:
75-
- "doc/_build/html"
76-
- "~/log.txt"
77-
- "nosetests.xml"
78-
- "coverage.xml"
41+
- "~/docs"
42+
- "~/logs"
43+
- "~/coverage.xml"
44+
- "~/nosetests.xml"
45+
- "~/builddocs.log"
46+
- "~/scratch"

doc/_templates/indexsidebar.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ <h3>{{ _('Links') }}</h3>
55
<li>Docs: <a href="http://nipy.org/nipype">Stable</a> · <a href="http://nipype.readthedocs.org/en/latest/">Dev</a></li>
66
<li>Code: <a href="http://github.com/nipy/nipype">Github</a> · <a href="http://github.com/nipy/nipype/issues">Bugs-Requests</a></li>
77
<li>Forum: <a href="http://neurostars.org/t/nipype">User</a> · <a href="http://projects.scipy.org/mailman/listinfo/nipy-devel">Developer</a></li>
8-
<li><a href="http://nipy.org/software/license/index.html"><img src="https://img.shields.io/pypi/l/nipype.svg" alt="License"></a> · <a href="about.html#funding">Funding</a></li>
8+
<li><a href="about.html#funding">Funding</a> · <a href="http://nipy.org/software/license/index.html"><img src="https://img.shields.io/pypi/l/nipype.svg" alt="License"></a></li>
99
<li><a href="https://travis-ci.org/nipy/nipype"><img src="https://travis-ci.org/nipy/nipype.png?branch=master" alt="travis"></a> · <a href='https://coveralls.io/r/nipy/nipype'><img src='https://coveralls.io/repos/nipy/nipype/badge.png' alt='Coverage Status' /></a></li>
10-
<li><a href="https://pypi.python.org/pypi/nipype/"><img src="https://img.shields.io/pypi/dm/nipype.svg" alt="Downloads"></a> · <a href='https://pypi.python.org/pypi/nipype/'><img src='https://img.shields.io/pypi/pyversions/nipype.svg' alt='Python Versions' /></a></li>
10+
<a href='https://pypi.python.org/pypi/nipype/'><img src='https://img.shields.io/pypi/pyversions/nipype.svg' alt='Python Versions' /></a></li>
1111
</ul>
1212

1313
{% endblock %}

doc/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
# The short X.Y version.
8383
version = nipype.__version__
8484
# The full version, including alpha/beta/rc tags.
85-
release = "0.11.0"
85+
release = "0.12.0"
8686

8787
# The language for content autogenerated by Sphinx. Refer to documentation
8888
# for a list of supported languages.

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.11.0 <http://nipy.org/nipype/0.11.0>`_ `0.10.0 <http://nipy.org/nipype/0.10.0>`_
12+
Previous versions: `0.12.0 <http://nipype.readthedocs.io/en/0.12.0/>`_ `0.11.0 <http://nipy.org/nipype/0.11.0>`_
1313

1414
.. container:: doc2
1515

doc/links_names.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,9 @@
9595
.. _Camino: http://web4.cs.ucl.ac.uk/research/medic/camino/pmwiki/pmwiki.php
9696
.. _Camino2Trackvis: http://camino-trackvis.sourceforge.net/
9797
.. _MRtrix: http://www.brain.org.au/software/mrtrix/index.html
98+
.. _MRtrix3: http://www.mrtrix.org/
9899
.. _MNE: https://martinos.org/mne/index.html
100+
.. _ANTS: http://stnava.github.io/ANTs/
99101

100102
.. General software
101103
.. _gcc: http://gcc.gnu.org

0 commit comments

Comments
 (0)