Skip to content

Commit 18973cd

Browse files
committed
Merge branch 'master' into enh/ChainedNameSource
2 parents 06c2298 + c993606 commit 18973cd

File tree

183 files changed

+9603
-3286
lines changed

Some content is hidden

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

183 files changed

+9603
-3286
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@
1313
.settings
1414
.pydevproject
1515
.idea/
16+
/documentation.zip

CHANGES

Lines changed: 47 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,56 @@
1-
Next Release
1+
Next release
22
============
33

4+
* FIX: Amend create_tbss_non_fa() workflow to match FSL's tbss_non_fa command. (https://github.com/nipy/nipype/pull/1033)
5+
* FIX: remove unused mandatory flag from spm normalize (https://github.com/nipy/nipype/pull/1048)
6+
* ENH: Update ANTSCorticalThickness interface (https://github.com/nipy/nipype/pull/1013)
7+
* FIX: Edge case with sparsemodels and PEP8 cleanup (https://github.com/nipy/nipype/pull/1046)
8+
* ENH: New io interfaces for JSON files reading/writing (https://github.com/nipy/nipype/pull/1020)
9+
* ENH: Enhanced openfmri script to support freesurfer linkage (https://github.com/nipy/nipype/pull/1037)
10+
* BUG: matplotlib is supposed to be optional (https://github.com/nipy/nipype/pull/1003)
11+
* FIX: Fix split_filename behaviour when path has no file component (https://github.com/nipy/nipype/pull/1035)
12+
* ENH: Updated FSL dtifit to include option for grad non-linearities (https://github.com/nipy/nipype/pull/1032)
13+
* ENH: Updated Camino tracking interfaces, which can now use FSL bedpostx output.
14+
New options also include choice of tracker, interpolator, stepsize and
15+
curveinterval for angle threshold (https://github.com/nipy/nipype/pull/1029)
16+
* FIX: Interfaces redirecting X crashed if $DISPLAY not defined (https://github.com/nipy/nipype/pull/1027)
17+
* FIX: Bug crashed 'make api' (https://github.com/nipy/nipype/pull/1026)
18+
* ENH: Updated antsIntroduction to handle RA and RI registrations (https://github.com/nipy/nipype/pull/1009)
19+
* ENH: Updated N4BiasCorrection input spec to include weight image and spline order. Made
20+
argument formatting consistent. Cleaned ants.segmentation according to PEP8.
21+
(https://github.com/nipy/nipype/pull/990/files)
22+
* ENH: SPM12 Normalize interface (https://github.com/nipy/nipype/pull/986)
23+
* FIX: Utility interface test dir (https://github.com/nipy/nipype/pull/986)
24+
* FIX: IPython engine directory reset after crash (https://github.com/nipy/nipype/pull/987)
25+
* ENH: Resting state fMRI example with NiPy realignment and no SPM (https://github.com/nipy/nipype/pull/992)
26+
* FIX: Corrected Freesurfer SegStats _list_outputs to avoid error if summary_file is
27+
undefined (issue #994)(https://https://github.com/nipy/nipype/pull/996)
28+
* FIX: OpenfMRI support and FSL 5.0.7 changes (https://github.com/nipy/nipype/pull/1006)
29+
* FIX: Output prefix in SPM Normalize with modulation (https://github.com/nipy/nipype/pull/1023)
30+
* ENH: Usability improvements in cluster environments (https://github.com/nipy/nipype/pull/1025)
31+
* ENH: ANTs JointFusion() (https://github.com/nipy/nipype/pull/1042)
32+
* ENH: Added csvReader() utility (https://github.com/nipy/nipype/pull/1044)
33+
34+
Release 0.10.0 (October 10, 2014)
35+
============
36+
37+
* ENH: New miscelaneous interfaces: SplitROIs (mapper), MergeROIs (reducer)
38+
to enable parallel processing of very large images.
39+
* ENH: Updated FSL interfaces: BEDPOSTX and XFibres, former interfaces are still
40+
available with the version suffix: BEDPOSTX4 and XFibres4. Added gpu
41+
versions of BEDPOSTX: BEDPOSTXGPU, BEDPOSTX5GPU, and BEDPOSTX4GPU
42+
* ENH: Added experimental support for MIPAV algorithms thorugh JIST plugins
443
* ENH: New dipy interfaces: Denoise, Resample
5-
* ENH: New Freesurfer interfaces: Tkregister2 (for conversion of fsl style matrices to freesurfer format),
6-
MRIPretess
44+
* ENH: New Freesurfer interfaces: Tkregister2 (for conversion of fsl style matrices to freesurfer format), MRIPretess
745
* ENH: New FSL interfaces: WarpPoints, WarpPointsToStd, EpiReg, ProbTrackX2, WarpUtils, ConvertWarp
846
* ENH: New miscelaneous interfaces: AddCSVRow, NormalizeProbabilityMapSet, AddNoise
947
* ENH: New AFNI interfaces: Eval, Means, SVMTest, SVMTrain
10-
* ENH: FUGUE interface has been refactored to use the name_template system, 3 examples
48+
* ENH: FUGUE interface has been refactored to use the name_template system, 3 examples
1149
added to doctests, some bugs solved.
1250
* API: Interfaces to external packages are no longer available in the top-level
1351
``nipype`` namespace, and must be imported directly (e.g.
1452
``from nipype.interfaces import fsl``).
15-
* ENH: Support for elastix via a set of new interfaces: Registration, ApplyWarp,
53+
* ENH: Support for elastix via a set of new interfaces: Registration, ApplyWarp,
1654
AnalyzeWarp, PointsWarp, and EditTransform
1755
* ENH: New ANTs interface: ApplyTransformsToPoints, LaplacianThickness
1856
* ENH: New Diffusion Toolkit interface: TrackMerge
@@ -27,12 +65,15 @@ Next Release
2765
* ENH: New data grabbing interface that works over SSH connections, SSHDataGrabber
2866
* ENH: New color mode for write_graph
2967
* ENH: You can now force MapNodes to be run serially
68+
* ENH: Added ANTS based openfmri workflow
69+
* ENH: MapNode now supports flattening of nested lists
70+
* ENH: Support for headless mode using Xvfb
71+
* ENH: nipype_display_crash has a debugging mode
3072
* FIX: MRTrix tracking algorithms were ignoring mask parameters.
3173
* FIX: FNIRT registration pathway and associated OpenFMRI example script
3274
* FIX: spm12b compatibility for Model estimate
3375
* FIX: Batch scheduler controls the number of maximum jobs properly
3476
* FIX: Update for FSL 5.0.7 which deprecated Contrast Manager
35-
* ENH: Added ANTS based openfmri workflow
3677

3778
Release 0.9.2 (January 31, 2014)
3879
============

CONTRIBUTING.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
## Contributing pull-requests (PRs)
2+
3+
* All work is submitted via Pull Requests.
4+
* Pull Requests can be submitted as soon as there is code worth discussing.
5+
Pull Requests track the branch, so you can continue to work after the PR is submitted.
6+
Review and discussion can begin well before the work is complete,
7+
and the more discussion the better.
8+
The worst case is that the PR is closed.
9+
* Pull Requests should generally be made against master
10+
* Pull Requests should be tested, if feasible:
11+
- bugfixes should include regression tests
12+
- new behavior should at least get minimal exercise
13+
* Use a descriptive prefix for your PR: ENH, FIX, TST, DOC, STY, REF (refactor), WIP (Work in progress)
14+
* After submiting the PR, include an update to the CHANGES file: prefix: description (URL of pull request)
15+
* `make specs`
16+
* do: `make check-before-commit` before submitting the PR. This will require you to either install or be in developer mode with: `python setup.py install/develop`.
17+
18+
## Contributing issues
19+
20+
When opening a new Issue, please take the following steps:
21+
22+
1. Search GitHub and/or [Neurostars](neurostars.org) for your issue to avoid duplicate reports.
23+
Keyword searches for your error messages are most helpful.
24+
2. If possible, try updating to master and reproducing your issue,
25+
because we may have already fixed it.
26+
3. OS and version
27+
4. Nipype version
28+
5. Output of: `import nipype; nipype.get_info()`
29+
6. Versions of underlying tools (e.g., ANTS, FSL, SPM, etc.,.)
30+
7. Any script, or output log, in a gist (gist.github.com)
31+
8. When applicable, and where possible, pointers to relevant data files.

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ specs:
7070
@echo "Checking specs and autogenerating spec tests"
7171
python tools/checkspecs.py
7272

73-
check-before-commit: trailing-spaces html test specs
73+
check-before-commit: specs trailing-spaces html test
7474
@echo "removed spaces"
7575
@echo "built docs"
7676
@echo "ran test"

README.rst

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -63,29 +63,31 @@ documentation.
6363
Website
6464
-------
6565

66-
Information specific to NIPYPE is located here::
66+
Information specific to Nipype is located here::
6767
6868
http://nipy.org/nipype
6969

7070

71-
Mailing Lists
72-
-------------
73-
74-
For core NIPYPE related issues, please see the developer's list here::
75-
76-
http://projects.scipy.org/mailman/listinfo/nipy-devel
71+
Support and Communication
72+
-------------------------
7773

78-
For user NIPYPE related issues, please see the user's list here::
74+
If you have a problem or would like to ask a question about how to do something in Nipype please submit a question
75+
to `NeuroStars.org <http://neurostars.org>`_ with a *nipype* tag. `NeuroStars.org <http://neurostars.org>`_ is a platform similar to StackOverflow but dedicated to neuroinformatics. All previous Nipype questions are available here::
7976

80-
http://groups.google.com/group/nipy-user
77+
http://neurostars.org/t/nipype/
78+
8179

82-
For NIPYPE related issues, please add *NIPYPE* to the subject line
80+
To participate in the Nipype development related discussion please use the following mailing list::
81+
82+
http://projects.scipy.org/mailman/listinfo/nipy-devel
83+
84+
Please add *[nipype]* to the subject line when posting on the mailing list.
8385

8486

85-
NIPYPE structure
87+
Nipype structure
8688
----------------
8789

88-
Currently NIPYPE consists of the following files and directories:
90+
Currently Nipype consists of the following files and directories:
8991

9092
INSTALL
9193
NIPYPE prerequisites, installation, development, testing, and

bin/nipype_display_crash

Lines changed: 59 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,85 @@
11
#!/usr/bin/env python
22
"""Displays crash information from Nipype crash files. For certain crash files,
33
one can rerun a failed node in a temp directory.
4-
"""
54
6-
import argparse
7-
from nipype.utils.filemanip import loadcrash
5+
Examples:
6+
7+
nipype_display_crash crashfile.pklz
8+
nipype_display_crash crashfile.pklz -r -i
9+
nipype_display_crash crashfile.pklz -r -i
10+
11+
"""
812

9-
def display_crash_files(crashfile, rerun):
13+
def display_crash_files(crashfile, rerun, debug, directory):
1014
"""display crash file content and rerun if required"""
1115

16+
from nipype.utils.filemanip import loadcrash
1217
crash_data = loadcrash(crashfile)
1318
node = None
1419
if 'node' in crash_data:
1520
node = crash_data['node']
1621
tb = crash_data['traceback']
17-
print "\n"
18-
print "File: %s"%crashfile
22+
print("\n")
23+
print("File: %s" % crashfile)
1924
if node:
20-
print "Node: %s"%node
25+
print("Node: %s" % node)
2126
if node.base_dir:
22-
print "Working directory: %s"%node.output_dir()
27+
print("Working directory: %s" % node.output_dir())
2328
else:
24-
print "Node crashed before execution"
25-
print "\n"
26-
print "Node inputs:"
27-
print node.inputs
28-
print "\n"
29-
print "Traceback: "
30-
print ''.join(tb)
31-
print "\n"
29+
print("Node crashed before execution")
30+
print("\n")
31+
print("Node inputs:")
32+
print(node.inputs)
33+
print("\n")
34+
print("Traceback: ")
35+
print(''.join(tb))
36+
print ("\n")
3237

3338
if rerun:
3439
if node is None:
35-
print "No node in crashfile. Cannot rerun"
40+
print("No node in crashfile. Cannot rerun")
3641
return
37-
print "Rerunning node"
38-
node.base_dir = None
42+
print("Rerunning node")
43+
node.base_dir = directory
3944
node.config = {'execution': {'crashdump_dir': '/tmp'}}
40-
node.run()
41-
print "\n"
45+
try:
46+
node.run()
47+
except:
48+
if debug and debug != 'ipython':
49+
import pdb
50+
pdb.post_mortem()
51+
else:
52+
raise
53+
print("\n")
4254

4355
if __name__ == "__main__":
44-
parser = argparse.ArgumentParser(prog='nipype_display_crash',
45-
description=__doc__)
56+
from argparse import ArgumentParser, RawTextHelpFormatter
57+
defstr = ' (default %(default)s)'
58+
parser = ArgumentParser(prog='nipype_display_crash',
59+
description=__doc__,
60+
formatter_class=RawTextHelpFormatter)
4661
parser.add_argument('crashfile', metavar='f', type=str,
47-
help='crash file to display')
62+
help='crash file to display')
4863
parser.add_argument('-r','--rerun', dest='rerun',
4964
default=False, action="store_true",
50-
help='rerun crashed node')
65+
help='rerun crashed node' + defstr)
66+
group = parser.add_mutually_exclusive_group()
67+
group.add_argument('-d','--debug', dest='debug',
68+
default=False, action="store_true",
69+
help='enable python debugger when re-executing' + defstr)
70+
group.add_argument('-i','--ipydebug', dest='ipydebug',
71+
default=False, action="store_true",
72+
help='enable ipython debugger when re-executing' + defstr)
73+
parser.add_argument('--dir', dest='directory',
74+
default=None,
75+
help='Directory to run the node in' + defstr)
5176
args = parser.parse_args()
52-
53-
display_crash_files(args.crashfile, args.rerun)
77+
debug = 'ipython' if args.ipydebug else args.debug
78+
if debug == 'ipython':
79+
import sys
80+
from IPython.core import ultratb
81+
sys.excepthook = ultratb.FormattedTB(mode='Verbose',
82+
color_scheme='Linux',
83+
call_pdb=1)
84+
display_crash_files(args.crashfile, args.rerun,
85+
debug, args.directory)

doc/_templates/indexsidebar.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ <h3>{{ _('Links') }}</h3>
44
<ul>
55
<li>Docs: <a href="http://nipy.org/nipype">Stable</a> · <a href="http://www.mit.edu/~satra/nipype-nightly/">Nightly</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>
7-
<li>Forum: <a href="http://groups.google.com/group/nipy-user">User</a> · <a href="http://projects.scipy.org/mailman/listinfo/nipy-devel">Developer</a></li>
7+
<li>Forum: <a href="http://neurostars.org/t/nipype">User</a> · <a href="http://projects.scipy.org/mailman/listinfo/nipy-devel">Developer</a></li>
88
<li><a href="http://nipy.org/software/license/index.html"><img src="https://pypip.in/license/nipype/badge.png" alt="License"></a> · <a href="http://nipy.org/about/funding.html">Funding</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>
1010
<li><a href="https://pypi.python.org/pypi/nipype/"><img src="https://pypip.in/download/nipype/badge.png" alt="Downloads"></a> · <a href='https://pypi.python.org/pypi/nipype/'><img src='https://pypip.in/py_versions/nipype/badge.png' alt='Python Versions' /></a></li>

doc/_templates/sidebar_versions.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ <h3>{{ _('Versions') }}</h3>
1717
<td align="left">Release</td><td align="right">Devel</td>
1818
</tr>
1919
<tr>
20-
<td align="left">0.9.2</td><td align="right">1.0-dev</td>
20+
<td align="left">0.10.0</td><td align="right">1.0-dev</td>
2121
</tr>
2222
<tr>
2323
<td align="left"><a href="{{pathto('users/install')}}">Download</a></td>

doc/conf.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@
3939
'numpy_ext.numpydoc',
4040
'matplotlib.sphinxext.plot_directive',
4141
'matplotlib.sphinxext.only_directives',
42-
'matplotlib.sphinxext.ipython_directive',
43-
'ipython_console_highlighting'
42+
'IPython.sphinxext.ipython_directive',
43+
'IPython.sphinxext.ipython_console_highlighting'
4444
]
4545

4646
# Add any paths that contain templates here, relative to this directory.
@@ -57,7 +57,7 @@
5757

5858
# General information about the project.
5959
project = u'nipype'
60-
copyright = u'2009-13, Neuroimaging in Python team'
60+
copyright = u'2009-14, Neuroimaging in Python team'
6161

6262
# The version info for the project you're documenting, acts as replacement for
6363
# |version| and |release|, also used in various other places throughout the

doc/devel/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ conventions documented in the `NIPY Developers Guide
1818
gitwash/index
1919
architecture
2020
provenance
21+
software_using_nipype
2122

2223

2324
.. include:: ../links_names.txt

0 commit comments

Comments
 (0)