Skip to content

Commit 054d62d

Browse files
committed
Merge branch 'master' of https://github.com/nipy/nipype into nipy-master
Conflicts: nipype/interfaces/fsl/preprocess.py
2 parents ce531a0 + e310282 commit 054d62d

File tree

101 files changed

+5130
-1298
lines changed

Some content is hidden

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

101 files changed

+5130
-1298
lines changed

.travis.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,12 @@ before_install:
2020
- source /etc/fsl/fsl.sh
2121
- virtualenv --system-site-packages ~/virtualenv/this
2222
- source ~/virtualenv/this/bin/activate
23-
install: python setup.py build_ext --inplace
24-
script: make test
23+
- pip install https://github.com/RDFLib/rdflib/archive/master.zip
24+
- pip install https://github.com/satra/prov/archive/enh/rdf.zip
25+
install:
26+
- source ~/virtualenv/this/bin/activate
27+
- python setup.py build_ext --inplace
28+
script:
29+
- source ~/virtualenv/this/bin/activate
30+
- make test
31+

CHANGES

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
Next release
22
============
33

4-
* ENH: New interfaces: spm.ResliceToReference
4+
* ENH: SelectFiles: a streamlined version of DataGrabber
5+
* ENH: New interfaces: spm.ResliceToReference, FuzzyOverlap, afni.AFNItoNIFTI
6+
* ENH: W3C PROV support with optional RDF export built into Nipype
57

68
* FIX: Deals properly with 3d files in SPM Realign
79

doc/devel/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ conventions documented in the `NIPY Developers Guide
1717
writing_custom_interfaces
1818
gitwash/index
1919
architecture
20+
provenance
2021

2122

2223
.. include:: ../links_names.txt

doc/devel/provenance.rst

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
================
2+
W3C PROV support
3+
================
4+
5+
Overview
6+
--------
7+
8+
We're using the the `W3C PROV data model <http://www.w3.org/TR/prov-dm/`_ to
9+
capture and represent provenance in Nipype.
10+
11+
For an overview see:
12+
13+
`PROV-DM overview <http://slideviewer.herokuapp.com/url/raw.github.com/ni-/notebooks/master/NIDMIntro.ipynb>`_
14+
15+
Each interface writes out a provenance.json (currently prov-json) or
16+
provenance.rdf (if rdflib is available) file. The workflow engine can also
17+
write out a provenance of the workflow if instructed.
18+
19+
This is very much an experimental feature as we continue to refine how exactly
20+
the provenance should be stored and how such information can be used for
21+
reporting or reconstituting workflows.

doc/sphinxext/README.txt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,10 @@
55
We've copied these sphinx extensions over from nipy-core. Any edits
66
should be done upstream in nipy-core, not here in nipype!
77

8-
Thesea are a few sphinx extensions we are using to build the nipy
8+
These a are a few sphinx extensions we are using to build the nipy
99
documentation. In this file we list where they each come from, since we intend
1010
to always push back upstream any modifications or improvements we make to them.
1111

12-
* From matploltlib:
13-
* inheritance_diagram.py
14-
1512
* From numpy:
1613
* numpy_ext
1714

doc/sphinxext/autosummary_generate.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def main():
5454
for name, path in sorted(names.items()):
5555
if options.output_dir is not None:
5656
path = options.output_dir
57-
57+
5858
if not os.path.isdir(path):
5959
os.makedirs(path)
6060

@@ -121,7 +121,7 @@ def get_documented_in_docstring(name, module=None, filename=None):
121121
"""
122122
Find out what items are documented in the given object's docstring.
123123
See `get_documented_in_lines`.
124-
124+
125125
"""
126126
try:
127127
obj, real_name = import_by_name(name)
@@ -136,7 +136,7 @@ def get_documented_in_docstring(name, module=None, filename=None):
136136
def get_documented_in_lines(lines, module=None, filename=None):
137137
"""
138138
Find out what items are documented in the given lines
139-
139+
140140
Returns
141141
-------
142142
documented : dict of list of (filename, title, keyword, toctree)
@@ -153,15 +153,15 @@ def get_documented_in_lines(lines, module=None, filename=None):
153153
module_re = re.compile(r'^\.\.\s+(current)?module::\s*([a-zA-Z0-9_.]+)\s*$')
154154
autosummary_item_re = re.compile(r'^\s+([_a-zA-Z][a-zA-Z0-9_.]*)\s*.*?')
155155
toctree_arg_re = re.compile(r'^\s+:toctree:\s*(.*?)\s*$')
156-
156+
157157
documented = {}
158-
158+
159159
current_title = []
160160
last_line = None
161161
toctree = None
162162
current_module = module
163163
in_autosummary = False
164-
164+
165165
for line in lines:
166166
try:
167167
if in_autosummary:

0 commit comments

Comments
 (0)