Skip to content

Commit 3adfd64

Browse files
committed
Merge branch 'master' into enh/3dtproject
* master: (32 commits) DOC: Use pip-packaged numpydoc FIX: Update pybids data directory sty: spacing enh: improve travis build reliability enh: add test from #2431 fix: set _id property of cloned node too fix: syntax sty: pep8 and better error messages Fix expected CL in doctest Change auto test accordingly enh+sty: autotest and styling enh: add c3d and c4d interface Fix issue #2408 fix: updated custom search to current api fix out_file template bugs FIX: Do not cache grab_exts fix: remove deprecated output from _list_outputs ENH: Reorder traits for better error message ENH: Add info to ImageFile for better error messages ENH: Simplify listifying logic ...
2 parents ae7dc34 + 765b0fc commit 3adfd64

26 files changed

+391
-1201
lines changed

.travis.yml

Lines changed: 42 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,64 @@
1-
cache:
2-
apt: true
1+
dist: trusty
2+
sudo: required
33

44
language: python
5+
# our build matrix
56
python:
67
- 2.7
78
- 3.4
89
- 3.5
910
- 3.6
11+
1012
env:
1113
- INSTALL_DEB_DEPENDECIES=true NIPYPE_EXTRAS="doc,tests,fmri,profiler" CI_SKIP_TEST=1
1214
- INSTALL_DEB_DEPENDECIES=false NIPYPE_EXTRAS="doc,tests,fmri,profiler" CI_SKIP_TEST=1
1315
- INSTALL_DEB_DEPENDECIES=true NIPYPE_EXTRAS="doc,tests,fmri,profiler,duecredit" CI_SKIP_TEST=1
1416
- INSTALL_DEB_DEPENDECIES=true NIPYPE_EXTRAS="doc,tests,fmri,profiler" PIP_FLAGS="--pre" CI_SKIP_TEST=1
17+
18+
addons:
19+
apt:
20+
packages:
21+
- xvfb
22+
- fusefat
23+
- graphviz
24+
25+
cache:
26+
directories:
27+
- ${HOME}/.cache
28+
1529
before_install:
16-
- function apt_inst {
17-
if $INSTALL_DEB_DEPENDECIES; then sudo rm -rf /dev/shm; fi &&
18-
if $INSTALL_DEB_DEPENDECIES; then sudo ln -s /run/shm /dev/shm; fi &&
19-
bash <(wget -q -O- http://neuro.debian.net/_files/neurodebian-travis.sh) &&
20-
sudo apt-get -y update &&
21-
sudo apt-get -y install xvfb fusefat graphviz &&
22-
if $INSTALL_DEB_DEPENDECIES; then travis_retry sudo apt-get install -y -qq
23-
fsl afni elastix fsl-atlases; fi &&
24-
if $INSTALL_DEB_DEPENDECIES; then
30+
- if $INSTALL_DEB_DEPENDECIES; then sudo rm -rf /dev/shm; sudo ln -s /run/shm /dev/shm; fi
31+
- travis_retry bash <(wget -q -O- http://neuro.debian.net/_files/neurodebian-travis.sh);
32+
- if $INSTALL_DEB_DEPENDECIES; then
33+
travis_retry sudo apt-get -y update &&
34+
travis_retry sudo apt-get install -y -qq fsl afni elastix fsl-atlases;
35+
fi;
36+
- if $INSTALL_DEB_DEPENDECIES; then
2537
source /etc/fsl/fsl.sh;
2638
source /etc/afni/afni.sh;
27-
export FSLOUTPUTTYPE=NIFTI_GZ; fi }
28-
- function conda_inst {
29-
export CONDA_HOME=$HOME/conda &&
30-
wget https://repo.continuum.io/miniconda/Miniconda${TRAVIS_PYTHON_VERSION:0:1}-latest-Linux-x86_64.sh
31-
-O /home/travis/.cache/conda.sh &&
32-
bash /home/travis/.cache/conda.sh -b -p ${CONDA_HOME} &&
33-
export PATH=${CONDA_HOME}/bin:$PATH &&
34-
hash -r &&
35-
conda config --set always_yes yes --set changeps1 no &&
36-
conda update -q conda &&
37-
conda config --add channels conda-forge &&
38-
conda install python=${TRAVIS_PYTHON_VERSION} &&
39-
conda install -y icu &&
40-
pip install -r requirements.txt &&
41-
pushd $HOME;
42-
git clone https://github.com/INCF/pybids.git;
43-
cd pybids;
44-
pip install -e .;
45-
popd; }
46-
# Add install of vtk and mayavi to test mesh (disabled): conda install -y vtk mayavi
47-
- travis_retry apt_inst
48-
- travis_retry conda_inst
39+
export FSLOUTPUTTYPE=NIFTI_GZ;
40+
fi;
41+
42+
# handle python operations separately to reduce timeouts
43+
- wget https://repo.continuum.io/miniconda/Miniconda${TRAVIS_PYTHON_VERSION:0:1}-latest-Linux-x86_64.sh
44+
-O /home/travis/.cache/conda.sh
45+
- bash ${HOME}/.cache/conda.sh -b -p ${HOME}/conda
46+
- export PATH=${HOME}/conda/bin:$PATH
47+
- hash -r
48+
- conda config --set always_yes yes --set changeps1 no
49+
- travis_retry conda update -q conda
50+
- conda config --add channels conda-forge
51+
- travis_retry conda install -y python=${TRAVIS_PYTHON_VERSION} icu
52+
- travis_retry pip install -r requirements.txt
53+
- travis_retry git clone https://github.com/INCF/pybids.git ${HOME}/pybids &&
54+
pip install -e ${HOME}/pybids
55+
4956
install:
5057
- travis_retry pip install $PIP_FLAGS -e .[$NIPYPE_EXTRAS]
58+
5159
script:
5260
- py.test -v --doctest-modules nipype
61+
5362
deploy:
5463
provider: pypi
5564
user: satra

doc/_templates/gse.html

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -24,20 +24,17 @@
2424
</style>
2525

2626
<div class="sidebarblock">
27-
<div id="cse-search-form">Loading</div>
28-
29-
<script src="http://www.google.com/jsapi" type="text/javascript"></script>
30-
<script type="text/javascript">
31-
google.load('search', '1', {language : 'en'});
32-
google.setOnLoadCallback(function() {
33-
var customSearchControl = new google.search.CustomSearchControl(
34-
'010960497803984932957:u8pmqf7fdoq');
35-
36-
customSearchControl.setResultSetSize(google.search.Search.FILTERED_CSE_RESULTSET);
37-
var options = new google.search.DrawOptions();
38-
options.enableSearchboxOnly("{{pathto('searchresults')}}");
39-
customSearchControl.draw('cse-search-form', options);
40-
}, true);
27+
<script>
28+
(function() {
29+
var cx = '010960497803984932957:u8pmqf7fdoq';
30+
var gcse = document.createElement('script');
31+
gcse.type = 'text/javascript';
32+
gcse.async = true;
33+
gcse.src = 'https://cse.google.com/cse.js?cx=' + cx;
34+
var s = document.getElementsByTagName('script')[0];
35+
s.parentNode.insertBefore(gcse, s);
36+
})();
4137
</script>
38+
<gcse:search></gcse:search>
4239
</div>
4340
{% endblock %}

doc/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
'sphinx.ext.autodoc',
4949
'sphinx.ext.doctest',
5050
'sphinx.ext.autosummary',
51-
'numpy_ext.numpydoc',
51+
'numpydoc',
5252
'matplotlib.sphinxext.plot_directive',
5353
'matplotlib.sphinxext.only_directives',
5454
'nipype.sphinxext.plot_workflow',
@@ -73,7 +73,7 @@
7373

7474
# General information about the project.
7575
project = u'nipype'
76-
copyright = u'2009-17, Neuroimaging in Python team'
76+
copyright = u'2009-18, Neuroimaging in Python team'
7777

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

doc/searchresults.rst

Lines changed: 14 additions & 165 deletions
Original file line numberDiff line numberDiff line change
@@ -6,168 +6,17 @@ Search results
66

77
.. raw:: html
88

9-
<div id="cse" style="width: 100%;">Loading</div>
10-
<script src="http://www.google.com/jsapi" type="text/javascript"></script>
11-
<script type="text/javascript">
12-
function parseQueryFromUrl () {
13-
var queryParamName = "q";
14-
var search = window.location.search.substr(1);
15-
var parts = search.split('&');
16-
for (var i = 0; i < parts.length; i++) {
17-
var keyvaluepair = parts[i].split('=');
18-
if (decodeURIComponent(keyvaluepair[0]) == queryParamName) {
19-
return decodeURIComponent(keyvaluepair[1].replace(/\+/g, ' '));
20-
}
21-
}
22-
return '';
23-
}
24-
google.load('search', '1', {language : 'en', style : google.loader.themes.MINIMALIST});
25-
google.setOnLoadCallback(function() {
26-
var customSearchControl = new google.search.CustomSearchControl(
27-
'010960497803984932957:u8pmqf7fdoq');
28-
29-
customSearchControl.setResultSetSize(google.search.Search.FILTERED_CSE_RESULTSET);
30-
customSearchControl.draw('cse');
31-
var queryFromUrl = parseQueryFromUrl();
32-
if (queryFromUrl) {
33-
customSearchControl.execute(queryFromUrl);
34-
}
35-
}, true);
36-
</script>
37-
<link rel="stylesheet" href="http://www.google.com/cse/style/look/default.css" type="text/css" /> <style type="text/css">
38-
.gsc-control-cse {
39-
font-family: Arial, sans-serif;
40-
border-color: #FFFFFF;
41-
background-color: #FFFFFF;
42-
}
43-
input.gsc-input {
44-
border-color: #BCCDF0;
45-
}
46-
input.gsc-search-button {
47-
border-color: #666666;
48-
background-color: #CECECE;
49-
}
50-
.gsc-tabHeader.gsc-tabhInactive {
51-
border-color: #E9E9E9;
52-
background-color: #E9E9E9;
53-
}
54-
.gsc-tabHeader.gsc-tabhActive {
55-
border-top-color: #FF9900;
56-
border-left-color: #E9E9E9;
57-
border-right-color: #E9E9E9;
58-
background-color: #FFFFFF;
59-
}
60-
.gsc-tabsArea {
61-
border-color: #E9E9E9;
62-
}
63-
.gsc-webResult.gsc-result,
64-
.gsc-results .gsc-imageResult {
65-
border-color: #FFFFFF;
66-
background-color: #FFFFFF;
67-
}
68-
.gsc-webResult.gsc-result:hover,
69-
.gsc-imageResult:hover {
70-
border-color: #FFFFFF;
71-
background-color: #FFFFFF;
72-
}
73-
.gs-webResult.gs-result a.gs-title:link,
74-
.gs-webResult.gs-result a.gs-title:link b,
75-
.gs-imageResult a.gs-title:link,
76-
.gs-imageResult a.gs-title:link b {
77-
color: #0000CC;
78-
}
79-
.gs-webResult.gs-result a.gs-title:visited,
80-
.gs-webResult.gs-result a.gs-title:visited b,
81-
.gs-imageResult a.gs-title:visited,
82-
.gs-imageResult a.gs-title:visited b {
83-
color: #0000CC;
84-
}
85-
.gs-webResult.gs-result a.gs-title:hover,
86-
.gs-webResult.gs-result a.gs-title:hover b,
87-
.gs-imageResult a.gs-title:hover,
88-
.gs-imageResult a.gs-title:hover b {
89-
color: #0000CC;
90-
}
91-
.gs-webResult.gs-result a.gs-title:active,
92-
.gs-webResult.gs-result a.gs-title:active b,
93-
.gs-imageResult a.gs-title:active,
94-
.gs-imageResult a.gs-title:active b {
95-
color: #0000CC;
96-
}
97-
.gsc-cursor-page {
98-
color: #0000CC;
99-
}
100-
a.gsc-trailing-more-results:link {
101-
color: #0000CC;
102-
}
103-
.gs-webResult .gs-snippet,
104-
.gs-imageResult .gs-snippet,
105-
.gs-fileFormatType {
106-
color: #000000;
107-
}
108-
.gs-webResult div.gs-visibleUrl,
109-
.gs-imageResult div.gs-visibleUrl {
110-
color: #008000;
111-
}
112-
.gs-webResult div.gs-visibleUrl-short {
113-
color: #008000;
114-
}
115-
.gs-webResult div.gs-visibleUrl-short {
116-
display: none;
117-
}
118-
.gs-webResult div.gs-visibleUrl-long {
119-
display: block;
120-
}
121-
.gsc-cursor-box {
122-
border-color: #FFFFFF;
123-
}
124-
.gsc-results .gsc-cursor-box .gsc-cursor-page {
125-
border-color: #E9E9E9;
126-
background-color: #FFFFFF;
127-
color: #0000CC;
128-
}
129-
.gsc-results .gsc-cursor-box .gsc-cursor-current-page {
130-
border-color: #FF9900;
131-
background-color: #FFFFFF;
132-
color: #0000CC;
133-
}
134-
.gs-promotion {
135-
border-color: #336699;
136-
background-color: #FFFFFF;
137-
}
138-
.gs-promotion a.gs-title:link,
139-
.gs-promotion a.gs-title:link *,
140-
.gs-promotion .gs-snippet a:link {
141-
color: #0000CC;
142-
}
143-
.gs-promotion a.gs-title:visited,
144-
.gs-promotion a.gs-title:visited *,
145-
.gs-promotion .gs-snippet a:visited {
146-
color: #0000CC;
147-
}
148-
.gs-promotion a.gs-title:hover,
149-
.gs-promotion a.gs-title:hover *,
150-
.gs-promotion .gs-snippet a:hover {
151-
color: #0000CC;
152-
}
153-
.gs-promotion a.gs-title:active,
154-
.gs-promotion a.gs-title:active *,
155-
.gs-promotion .gs-snippet a:active {
156-
color: #0000CC;
157-
}
158-
.gs-promotion .gs-snippet,
159-
.gs-promotion .gs-title .gs-promotion-title-right,
160-
.gs-promotion .gs-title .gs-promotion-title-right * {
161-
color: #000000;
162-
}
163-
.gs-promotion .gs-visibleUrl,
164-
.gs-promotion .gs-visibleUrl-short {
165-
color: #008000;
166-
}
167-
/* Manually added - the layout goes wrong without this */
168-
.gsc-tabsArea,
169-
.gsc-webResult:after,
170-
.gsc-resultsHeader {
171-
clear: none;
172-
}
173-
</style>
9+
<div id="cse" style="width: 100%;">Loading
10+
<script>
11+
(function() {
12+
var cx = '010960497803984932957:u8pmqf7fdoq';
13+
var gcse = document.createElement('script');
14+
gcse.type = 'text/javascript';
15+
gcse.async = true;
16+
gcse.src = 'https://cse.google.com/cse.js?cx=' + cx;
17+
var s = document.getElementsByTagName('script')[0];
18+
s.parentNode.insertBefore(gcse, s);
19+
})();
20+
</script>
21+
<gcse:search></gcse:search>
22+
</div>

doc/sphinxext/numpy_ext/__init__.py

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)