File tree Expand file tree Collapse file tree 3 files changed +11
-3
lines changed Expand file tree Collapse file tree 3 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ install:
31
31
- conda update --all -y python=$TRAVIS_PYTHON_VERSION
32
32
# - if [[ "${INSTALL_DEB_DEPENDECIES}" == "true" && ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]]; then
33
33
# conda install -y vtk mayavi; fi
34
- - conda install -y nipype
34
+ - conda install -y nipype matplotlib nitime
35
35
- pip install python-coveralls coverage doctest-ignore-unicode
36
36
- if [ ! -z "$DUECREDIT_ENABLE"]; then pip install duecredit; fi
37
37
- rm -r /home/travis/miniconda/lib/python${TRAVIS_PYTHON_VERSION}/site-packages/nipype*
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env python
2
2
# -*- coding: utf-8 -*-
3
3
import os
4
- from nipype .testing import (assert_equal , example_data )
4
+ from nipype .testing import (assert_equal , example_data , skipif )
5
5
from nipype .algorithms .confounds import FramewiseDisplacement , ComputeDVARS
6
6
import numpy as np
7
7
from tempfile import mkdtemp
8
8
from shutil import rmtree
9
9
10
+ nonitime = True
11
+ try :
12
+ import nitime
13
+ nonitime = False
14
+ except ImportError :
15
+ pass
16
+
17
+
10
18
def test_fd ():
11
19
tempdir = mkdtemp ()
12
20
ground_truth = np .loadtxt (example_data ('fsl_motion_outliers_fd.txt' ))
@@ -17,6 +25,7 @@ def test_fd():
17
25
yield assert_equal , np .abs (ground_truth .mean () - res .outputs .fd_average ) < 1e-4 , True
18
26
rmtree (tempdir )
19
27
28
+ @skipif (nonitime )
20
29
def test_dvars ():
21
30
tempdir = mkdtemp ()
22
31
ground_truth = np .loadtxt (example_data ('ds003_sub-01_mc.DVARS' ))
Original file line number Diff line number Diff line change @@ -12,4 +12,3 @@ xvfbwrapper
12
12
psutil
13
13
funcsigs
14
14
configparser
15
- nitime
You can’t perform that action at this time.
0 commit comments