Skip to content

Commit 4b392d5

Browse files
committed
Merge pull request #1421 from satra/fix/vagrant
fix: updated Vagrantfile, fixed freesurfer test on osx, and fsl doctest
2 parents 28c9473 + d19735f commit 4b392d5

File tree

3 files changed

+14
-10
lines changed

3 files changed

+14
-10
lines changed

Vagrantfile

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,20 @@ $script = <<SCRIPT
2020
# qconf -aattr queue slots "2, [neuro=3]" main.q
2121
2222
# install anaconda
23-
wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh
23+
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
2424
chmod +x miniconda.sh
2525
./miniconda.sh -b
26-
echo "export PATH=$HOME/miniconda/bin:\\$PATH" >> .bashrc
26+
echo "export PATH=$HOME/miniconda3/bin:\\$PATH" >> .bashrc
2727
2828
# install nipype dependencies
29-
$HOME/miniconda/bin/conda update --yes conda
30-
$HOME/miniconda/bin/conda install --yes pip numpy scipy nose traits networkx
31-
$HOME/miniconda/bin/conda install --yes dateutil ipython-notebook matplotlib
32-
$HOME/miniconda/bin/pip install nibabel --use-mirrors
33-
$HOME/miniconda/bin/pip install https://github.com/RDFLib/rdflib/archive/master.zip
34-
$HOME/miniconda/bin/pip install https://github.com/trungdong/prov/archive/rdf.zip
35-
$HOME/miniconda/bin/pip install https://github.com/nipy/nipype/archive/master.zip
29+
$HOME/miniconda3/bin/conda update --yes conda
30+
$HOME/miniconda3/bin/conda install --yes pip scipy nose networkx lxml future simplejson
31+
$HOME/miniconda3/bin/conda install --yes python-dateutil jupyter matplotlib
32+
$HOME/miniconda3/bin/pip install nibabel
33+
$HOME/miniconda3/bin/pip install prov
34+
$HOME/miniconda3/bin/pip install xvfbwrapper
35+
$HOME/miniconda3/bin/pip install traits
36+
$HOME/miniconda3/bin/pip install https://github.com/nipy/nipype/archive/master.zip
3637
SCRIPT
3738

3839
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|

nipype/interfaces/freesurfer/tests/test_model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
@skipif(no_freesurfer)
1616
def test_concatenate():
17-
tmp_dir = tempfile.mkdtemp()
17+
tmp_dir = os.path.realpath(tempfile.mkdtemp())
1818
cwd = os.getcwd()
1919
os.chdir(tmp_dir)
2020
in1 = os.path.join(tmp_dir, 'cont1.nii')

nipype/interfaces/fsl/utils.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ class Smooth(FSLCommand):
165165
Setting the kernel width using sigma:
166166
167167
>>> sm = Smooth()
168+
>>> sm.inputs.output_type = 'NIFTI_GZ'
168169
>>> sm.inputs.in_file = 'functional2.nii'
169170
>>> sm.inputs.sigma = 8.0
170171
>>> sm.cmdline #doctest: +ELLIPSIS
@@ -173,6 +174,7 @@ class Smooth(FSLCommand):
173174
Setting the kernel width using fwhm:
174175
175176
>>> sm = Smooth()
177+
>>> sm.inputs.output_type = 'NIFTI_GZ'
176178
>>> sm.inputs.in_file = 'functional2.nii'
177179
>>> sm.inputs.fwhm = 8.0
178180
>>> sm.cmdline #doctest: +ELLIPSIS
@@ -182,6 +184,7 @@ class Smooth(FSLCommand):
182184
183185
>>> from nipype.interfaces.fsl import Smooth
184186
>>> sm = Smooth()
187+
>>> sm.inputs.output_type = 'NIFTI_GZ'
185188
>>> sm.inputs.in_file = 'functional2.nii'
186189
>>> sm.cmdline #doctest: +ELLIPSIS
187190
Traceback (most recent call last):

0 commit comments

Comments
 (0)