Skip to content

Commit 8ad0598

Browse files
committed
Merge branch 'master' of https://github.com/nipy/nipype
2 parents 915e6e8 + 2d150ef commit 8ad0598

File tree

92 files changed

+998
-2098
lines changed

Some content is hidden

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

92 files changed

+998
-2098
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,7 @@ nipype/testing/data/von_errmap.nii.gz
2121
crash*.pklz
2222
.coverage
2323
htmlcov/
24+
__pycache__/
25+
*~
26+
.ipynb_checkpoints/
27+
.ruby-version

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ language: python
44
python:
55
- 2.7
66
- 3.4
7+
- 3.5
78
env:
89
- INSTALL_DEB_DEPENDECIES=true
910
- INSTALL_DEB_DEPENDECIES=false
@@ -39,7 +40,7 @@ install:
3940
- conda create -n testenv --yes pip python=$TRAVIS_PYTHON_VERSION
4041
- source activate testenv
4142
- if [ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]; then pip install ordereddict; fi
42-
- conda install --yes numpy scipy nose networkx dateutil
43+
- conda install --yes numpy scipy nose networkx python-dateutil
4344
- if [ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]; then conda install --yes traits; else pip install traits; fi
4445
- if [ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]; then conda install --yes vtk; fi
4546
- pip install python-coveralls

CHANGES

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
Next release
1+
Release 0.12.0-rc1 (April 20, 2016)
22
============
33

4+
* ENH: Added dcm2niix interface (https://github.com/nipy/nipype/pull/1435)
5+
* ENH: Add nipype_crash_search command (https://github.com/nipy/nipype/pull/1422)
46
* ENH: Created interface for BrainSuite Cortical Surface Extraction command line tools (https://github.com/nipy/nipype/pull/1305)
57
* FIX: job execution on systems/approaches where locale is undefined (https://github.com/nipy/nipype/pull/1401)
68
* FIX: Clean up byte/unicode issues using subprocess (https://github.com/nipy/nipype/pull/1394)
@@ -28,6 +30,7 @@ Next release
2830
* FIX: Correct linking/copying fallback behavior (https://github.com/nipy/nipype/pull/1391)
2931
* ENH: Nipype workflow and interfaces for FreeSurfer's recon-all (https://github.com/nipy/nipype/pull/1326)
3032
* FIX: Permit relative path for concatenated_file input to Concatenate() (https://github.com/nipy/nipype/pull/1411)
33+
* ENH: Makes ReconAll workflow backwards compatible with FreeSurfer 5.3.0 (https://github.com/nipy/nipype/pull/1434)
3134

3235
Release 0.11.0 (September 15, 2015)
3336
============

CHANGES.orig

Lines changed: 0 additions & 538 deletions
This file was deleted.

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
When opening a new Issue, please take the following steps:
2121

22-
1. Search GitHub and/or [Neurostars](neurostars.org) for your issue to avoid duplicate reports.
22+
1. Search GitHub and/or [Neurostars](http://neurostars.org) for your issue to avoid duplicate reports.
2323
Keyword searches for your error messages are most helpful.
2424
2. If possible, try updating to master and reproducing your issue,
2525
because we may have already fixed it.

LICENSE

Lines changed: 11 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,15 @@
1-
Copyright (c) 2009-2014, NIPY Developers
2-
All rights reserved.
1+
Copyright (c) 2009-2016, Nipype developers
32

4-
Redistribution and use in source and binary forms, with or without
5-
modification, are permitted provided that the following conditions are
6-
met:
3+
Licensed under the Apache License, Version 2.0 (the "License");
4+
you may not use this file except in compliance with the License.
5+
You may obtain a copy of the License at
76

8-
* Redistributions of source code must retain the above copyright
9-
notice, this list of conditions and the following disclaimer.
7+
http://www.apache.org/licenses/LICENSE-2.0
108

11-
* Redistributions in binary form must reproduce the above
12-
copyright notice, this list of conditions and the following
13-
disclaimer in the documentation and/or other materials provided
14-
with the distribution.
9+
Unless required by applicable law or agreed to in writing, software
10+
distributed under the License is distributed on an "AS IS" BASIS,
11+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
See the License for the specific language governing permissions and
13+
limitations under the License.
1514

16-
* Neither the name of the NIPY Developers nor the names of any
17-
contributors may be used to endorse or promote products derived
18-
from this software without specific prior written permission.
19-
20-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21-
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22-
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
23-
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
24-
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
25-
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
26-
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27-
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28-
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29-
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30-
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
15+
Prior to release 0.12, Nipype was licensed under a BSD license.

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ test: clean test-code
6666

6767
html:
6868
@echo "building docs"
69-
make -C doc clean html
69+
make -C doc clean htmlonly
7070

7171
specs:
7272
@echo "Checking specs and autogenerating spec tests"

THANKS.rst

Lines changed: 10 additions & 90 deletions
Original file line numberDiff line numberDiff line change
@@ -1,102 +1,22 @@
11
.. -*- mode: rst -*-
22
3-
43
Code contributors
54
-----------------
6-
Contributors to Nipype include but are not limited to:
7-
8-
.. hlist::
95

10-
* Aimi Watanabe
11-
* Alexander Schaefer
12-
* Alexandre Gramfort
13-
* Alexandre Savio
14-
* Anisha Keshavan
15-
* Ariel Rokem
16-
* Ben Acland
17-
* Ben Cipollini
18-
* Basile Pinsard
19-
* Brendan Moloney
20-
* Brian Cheung
21-
* Charl Linssen
22-
* Chris Filo Gorgolewski
23-
* Chris Steele
24-
* Christian Haselgrove
25-
* Christopher Burns
26-
* Cindee Madison
27-
* Claire Tarbert
28-
* Colin Buchanan
29-
* Daniel Ginsburg
30-
* Daniel Haehn
31-
* Daniel Margulies
32-
* Dav Clark
33-
* David Welch
34-
* Drew Erickson
35-
* Erik Kastman
36-
* Félix C. Morency
37-
* Gael Varoquaux
38-
* Hans Johnson
39-
* Janosch Linkersdörfer
40-
* Januzz
41-
* Jarrod Millman
42-
* Jeff Lai
43-
* Jessica Forbes
44-
* John Salvatore
45-
* Lijie Huang
46-
* Michael Hallquist
47-
* Michael Hanke
48-
* Michael Notter
49-
* Michael Waskom
50-
* Nolan Nichols
51-
* Oliver Hinds
52-
* Oscar Esteban
53-
* Rosalia Tungaraza
54-
* Satrajit Ghosh
55-
* Sharad Sikka
56-
* Stephan Gerhard
57-
* Erik Ziegler
58-
* Valentin Haenel
59-
* Xiangzhen Kong
60-
* Xu Wang
61-
* Yannick Schwartz
62-
* Yaroslav O. Halchenko
6+
See `Github contributors list <https://github.com/nipy/nipype/graphs/contributors>`__.
637

64-
For full most up to date list see `Ohloh <https://www.ohloh.net/p/nipype/contributors>`__.
8+
Funding
9+
-------
6510

66-
Other contributors
67-
------------------
11+
Nipype is currently supported by `1R01EB020740-01A1 Nipype: Dataflows for Reproducible Biomedical Research <https://projectreporter.nih.gov/project_info_description.cfm?aid=9053094>`__.
6812

69-
.. hlist::
13+
Satrajit Ghosh work on this project was partially funded by NIBIB `R03EB008673 <https://projectreporter.nih.gov/project_info_description.cfm?aid=7501200>`__ and by the `INCF <http://www.incf.org>`__ through a contract with TankThink Labs, LLC.
14+
Chris Burns was supported by NIMH grant `5R01MH081909-02 Continued Development and Maintenance of the Neuroimaging in Python Project <https://projectreporter.nih.gov/project_info_description.cfm?aid=7288112>`__. Hans Jonson was supported by
15+
`2 U54 EB005149 - 06 Core 2b Huntington's Disease - Driving Biological Project <http://projectreporter.nih.gov/project_info_description.cfm?aid=8153616>`__,
16+
`S10 RR023392 Enterprise Storage In A Collaborative Neuroimaging Environment <http://projectreporter.nih.gov/project_info_description.cfm?aid=7209718>`__,
17+
`R01 NS040068 Neurobiological Predictors of Huntington's Disease <http://projectreporter.nih.gov/project_info_description.cfm?aid=6266377>`__,
18+
and `UL1 TR000442 University of Iowa Clinical and Translational Science Program <http://projectreporter.nih.gov/project_info_description.cfm?aid=8467220>`__.
7019

71-
* Matthew Brett
72-
* Michael Castelle
73-
* Philippe Ciuciu
74-
* Yann Cointepas
75-
* Mark D'Esposito
76-
* Susan Gabrieli
77-
* Brian Hawthorne
78-
* Tim Leslie
79-
* Fernando Perez
80-
* Tyler Perrachione
81-
* Jean-Baptiste Poline
82-
* Alexis Roche
83-
* Denis Riviere
84-
* Gretchen Reynolds
85-
* Jonathan Taylor
86-
* Bertrand Thirion
87-
* Bernjamin Thyreau
88-
* Mike Trumpis
89-
* Karl Young
90-
* Tom Waite
9120

9221
We would also like to thank `JetBrains <http://www.jetbrains.com/>`__ for providing `Pycharm <http://www.jetbrains.com/pycharm/>`__ licenses.
9322

94-
Funding
95-
-------
96-
Satrajit Ghosh work on this project was partially funded by NIBIB R03 EB008673 (PI: Ghosh and Whitfield-Gabrieli) and by the `INCF <http://www.incf.org>`__ through a contract with TankThink Labs, LLC.
97-
Chris Burns was supported by NIMH grant 5R01MH081909-02 (PI: Desposito). Hans Jonson was supported by
98-
`2 U54 EB005149 - 06 Core 2b Huntington's Disease - Driving Biological Project <http://projectreporter.nih.gov/project_info_description.cfm?aid=8153616&icde=16158743&ddparam=&ddvalue=&ddsub=&cr=18&csb=PT&cs=ASC>`__,
99-
`S10 RR023392 Enterprise Storage In A Collaborative Neuroimaging Environment <http://projectreporter.nih.gov/project_info_description.cfm?aid=7209718&icde=16158552&ddparam=&ddvalue=&ddsub=&cr=1&csb=default&cs=ASC>`__,
100-
`R01 NS040068 Neurobiological Predictors of Huntington's Disease <http://projectreporter.nih.gov/project_info_description.cfm?aid=6266377&icde=16158103>`__,
101-
and `UL1 TR000442 University of Iowa Clinical and Translational Science Program <http://projectreporter.nih.gov/project_info_description.cfm?aid=8467220&icde=16159156&ddparam=&ddvalue=&ddsub=&cr=1&csb=default&cs=ASC>`__.
102-

bin/nipype_crash_search

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
#!/usr/bin/env python
2+
"""Search for tracebacks inside a folder of nipype crash
3+
log files that match a given regular expression.
4+
5+
Examples:
6+
nipype_crash_search -d nipype/wd/log -r '.*subject123.*'
7+
"""
8+
import re
9+
import os.path as op
10+
from glob import glob
11+
12+
from traits.trait_errors import TraitError
13+
from nipype.utils.filemanip import loadcrash
14+
15+
16+
def load_pklz_traceback(crash_filepath):
17+
""" Return the traceback message in the given crash file."""
18+
try:
19+
data = loadcrash(crash_filepath)
20+
except TraitError as te:
21+
return str(te)
22+
except:
23+
raise
24+
else:
25+
return '\n'.join(data['traceback'])
26+
27+
28+
def iter_tracebacks(logdir):
29+
""" Return an iterator over each file path and
30+
traceback field inside `logdir`.
31+
Parameters
32+
----------
33+
logdir: str
34+
Path to the log folder.
35+
36+
field: str
37+
Field name to be read from the crash file.
38+
39+
Yields
40+
------
41+
path_file: str
42+
43+
traceback: str
44+
"""
45+
crash_files = sorted(glob(op.join(logdir, '*.pkl*')))
46+
47+
for cf in crash_files:
48+
yield cf, load_pklz_traceback(cf)
49+
50+
51+
def display_crash_search(logdir, regex):
52+
rex = re.compile(regex, re.IGNORECASE)
53+
for file, trace in iter_tracebacks(logdir):
54+
if rex.search(trace):
55+
print("-" * len(file))
56+
print(file)
57+
print("-" * len(file))
58+
print(trace)
59+
60+
61+
if __name__ == "__main__":
62+
from argparse import ArgumentParser, RawTextHelpFormatter
63+
defstr = ' (default %(default)s)'
64+
parser = ArgumentParser(prog='nipype_crash_search',
65+
description=__doc__,
66+
formatter_class=RawTextHelpFormatter)
67+
parser.add_argument('-l','--logdir', type=str, dest='logdir',
68+
action="store", default=None,
69+
help='The working directory log file.' + defstr)
70+
parser.add_argument('-r', '--regex', dest='regex',
71+
default='*',
72+
help='Regular expression to be searched in each traceback.' + defstr)
73+
74+
args = parser.parse_args()
75+
76+
display_crash_search(args.logdir, args.regex)

circle.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ dependencies:
2828
- pip install -e git+https://github.com/enthought/blockcanvas.git#egg=blockcanvas
2929
- pip install -e git+https://github.com/enthought/etsproxy.git#egg=etsproxy
3030
- 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
3132
- gem install fakes3
3233
- 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
3334
- 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

0 commit comments

Comments
 (0)