Skip to content

Commit fbf1542

Browse files
author
Shoshana Berleant
committed
merged with new changes
2 parents 4dbad47 + 741df23 commit fbf1542

31 files changed

+1960
-549
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ install:
3131
- conda update --all -y python=$TRAVIS_PYTHON_VERSION
3232
# - if [[ "${INSTALL_DEB_DEPENDECIES}" == "true" && ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]]; then
3333
# conda install -y vtk mayavi; fi
34-
- conda install -y nipype
34+
- conda install -y nipype matplotlib nitime
3535
- pip install python-coveralls coverage doctest-ignore-unicode
3636
- if [ ! -z "$DUECREDIT_ENABLE"]; then pip install duecredit; fi
3737
- rm -r /home/travis/miniconda/lib/python${TRAVIS_PYTHON_VERSION}/site-packages/nipype*
@@ -43,7 +43,7 @@ install:
4343
script:
4444
- python -W once:FSL:UserWarning:nipype `which nosetests` --with-doctest --with-doctest-ignore-unicode --with-cov --cover-package nipype --logging-level=DEBUG --verbosity=3
4545
after_success:
46-
- coveralls --config_file ${COVERAGE_PROCESS_START}
46+
- bash <(curl -s https://codecov.io/bash) -t ac172a50-8e66-42e5-8822-5373fcf54686 -cF unittests
4747
deploy:
4848
provider: pypi
4949
user: satra

CHANGES

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
Upcoming release 0.13
22
=====================
33

4+
* ENH: Add a DVARS calculation interface (https://github.com/nipy/nipype/pull/1606)
45
* ENH: Convenient load/save of interface inputs (https://github.com/nipy/nipype/pull/1591)
56
* ENH: Add a Framewise Displacement calculation interface (https://github.com/nipy/nipype/pull/1604)
67
* FIX: Use builtins open and unicode literals for py3 compatibility (https://github.com/nipy/nipype/pull/1572)

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ NIPYPE: Neuroimaging in Python: Pipelines and Interfaces
88
.. image:: https://circleci.com/gh/nipy/nipype/tree/master.svg?style=svg
99
:target: https://circleci.com/gh/nipy/nipype/tree/master
1010

11-
.. image:: https://coveralls.io/repos/nipy/nipype/badge.png
12-
:target: https://coveralls.io/r/nipy/nipype
11+
.. image:: https://codecov.io/gh/nipy/nipype/branch/master/graph/badge.svg
12+
:target: https://codecov.io/gh/nipy/nipype
1313

1414
.. image:: https://www.codacy.com/project/badge/182f27944c51474490b369d0a23e2f32
1515
:target: https://www.codacy.com/app/krzysztof-gorgolewski/nipy_nipype

circle.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ dependencies:
2525
timeout: 1600
2626
- mkdir -p ~/docker; docker save nipype/nipype_test:py27 > ~/docker/image.tar :
2727
timeout: 1600
28-
- pip install xunitmerge
2928

3029
test:
3130
override:
@@ -50,13 +49,10 @@ test:
5049

5150
post:
5251
- bash docker/circleci/teardown.sh
52+
- for xml_f in ${CIRCLE_TEST_REPORTS}/nose/coverage*.xml; do bash <(curl -s https://codecov.io/bash) -f $xml_f -t ac172a50-8e66-42e5-8822-5373fcf54686 -F unittests; done
53+
- for xml_f in ${CIRCLE_TEST_REPORTS}/nose/smoketest*.xml; do bash <(curl -s https://codecov.io/bash) -f $xml_f -t ac172a50-8e66-42e5-8822-5373fcf54686 -F smoketests; done
5354

5455
general:
5556
artifacts:
5657
- "~/docs"
5758
- "~/logs"
58-
- "~/coverage_py27.xml"
59-
- "~/coverage_py35.xml"
60-
- "~/nosetests_py27.xml"
61-
- "~/nosetests_py35.xml"
62-
- "~/scratch"

codecov.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
coverage:
2+
range: "0...100"
3+
status:
4+
project:
5+
default:
6+
target: 0
7+
threshold: 100
8+
patch:
9+
target: 0
10+
threshold: 100
11+
unittests:
12+
target: 0
13+
threshold: 100
14+
flags:
15+
- "unittests"
16+
smoketests:
17+
target: 0
18+
threshold: 100
19+
flags:
20+
- "smoketests"

docker/circleci/run_examples.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ echo 'filemanip_level = DEBUG' >> /root/.nipype/nipype.cfg
1111
echo 'log_to_file = true' >> /root/.nipype/nipype.cfg
1212
echo 'log_directory = /scratch/logs/' >> /root/.nipype/nipype.cfg
1313

14-
python /root/src/nipype/tools/run_examples.py $@
14+
coverage run /root/src/nipype/tools/run_examples.py $@
15+
arr=$@
16+
tmp_var=$( IFS=$' '; echo "${arr[*]}" )
17+
coverage xml -o "/scratch/smoketest_${tmp_var//[^A-Za-z0-9_-]/_}.xml"
1518

16-
chmod 777 -R /scratch/logs
19+
chmod 777 -R /scratch/logs

docker/circleci/teardown.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,9 @@ set -u
77
set -e
88

99
mkdir -p ${CIRCLE_TEST_REPORTS}/nose
10-
xunitmerge ~/scratch/nosetests*.xml ${CIRCLE_TEST_REPORTS}/nose/${CIRCLE_PROJECT_REPONAME}.xml
11-
sudo mv ~/scratch/coverage*.xml ~/
10+
sudo mv ~/scratch/*.xml ${CIRCLE_TEST_REPORTS}/nose
1211
mkdir -p ~/docs
1312
sudo mv ~/scratch/docs/* ~/docs/
1413
mkdir -p ~/logs
1514
sudo mv ~/scratch/builddocs.log ~/logs/builddocs.log
16-
sudo mv ~/scratch/logs/* ~/logs/
15+
sudo mv ~/scratch/logs/* ~/logs/

examples/smri_ants_registration.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
import urllib.error
2525
import urllib.parse
2626
from nipype.interfaces.ants import Registration
27+
from nipype.testing import example_data
2728

2829
"""
2930
2. Download T1 volumes into home directory
@@ -61,11 +62,12 @@
6162

6263
"""
6364
3. Define the parameters of the registration. Settings are
64-
saved in ``smri_ants_registration_settings.json``.
65+
found in the file ``smri_ants_registration_settings.json``
66+
distributed with the ``example_data`` of `nipype`.
6567
6668
"""
6769

68-
reg = Registration(from_file='./smri_ants_registration_settings.json')
70+
reg = Registration(from_file=example_data('smri_ants_registration_settings.json'))
6971
reg.inputs.fixed_image = input_images[0]
7072
reg.inputs.moving_image = input_images[1]
7173

nipype/algorithms/compcor.py

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

0 commit comments

Comments
 (0)