Skip to content

FIX: Permit relative path for concatenated_file input to Concatenate() #1411

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Apr 6, 2016

Conversation

effigies
Copy link
Member

The example as given in the docs will fail to run, raising:

TraitError: The 'concatenated_file' trait of a ConcatenateOutputSpec instance must be an existing file name, but a value of 'bar.nii' <type 'str'> was specified.

While the ConcatenateInputSpec seems happy with a relative path, it seems ConcatenateOutputSpec needs an absolute path, so simply passing it through is insufficient. This change prepends the working directory. I've tested this on my own pipeline, and it resolves an error like the one above.

@effigies effigies changed the title FIX: Use relative path for concatenated_file input to Concatenate() FIX: Permit relative path for concatenated_file input to Concatenate() Mar 23, 2016
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.002%) to 72.981% when pulling 5c72074 on effigies:mri_concat_fix into c46b932 on nipy:master.

effigies added a commit to effigies/nipype that referenced this pull request Mar 24, 2016
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.03%) to 72.951% when pulling 7052512 on effigies:mri_concat_fix into c46b932 on nipy:master.

@effigies
Copy link
Member Author

Seeing FreeSurfer isn't installed in Circle, so tests can't run. Is this something that should change?

@satra
Copy link
Member

satra commented Mar 30, 2016

freesurfer is a nasty download 4.6GB. perhaps we can create a separate minimal freesurfer just for recon-all. more recently i think i've seen an internal docker version. let me look into that.

in the meantime, let's not run this on circle. it would also take too long to run.

@dgellis90 - since you are running this on your cluster, perhaps you can keep us posted there.

@oesteban
Copy link
Contributor

I'm currently migrating CircleCI tests to docker containers in some other projects. I think this could be the solution to the problem of downloading so large files.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.6%) to 72.373% when pulling c9e8bdb on effigies:mri_concat_fix into c46b932 on nipy:master.

@chrisgorgo
Copy link
Member

Freesurfer inside a docker image vs outside of it is still a 4GB download.
We can cache it (or the docker image with it) though.

On Wed, Mar 30, 2016 at 2:48 PM, Coveralls notifications@github.com wrote:

[image: Coverage Status] https://coveralls.io/builds/5605869

Coverage decreased (-3.3%) to 69.672% when pulling c9e8bdb
c9e8bdb
on effigies:mri_concat_fix
into c46b932
c46b932
on nipy:master
.


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
#1411 (comment)

@satra
Copy link
Member

satra commented Mar 30, 2016

@chrisfilo is correct - that's why we need to restrict it to what recon-all needs - which is only about 350MB - but there is indeed an effort to again make freesurfer available through neurodebian - which may become the smallest distribution for the binaries.

@chrisgorgo
Copy link
Member

I've tried to slim down FreeSurfer in this NeuroVault docker image
https://github.com/NeuroVault/NeuroVault/blob/master/fs_docker/Dockerfile,
but I never got even close to 350Mb...

On Wed, Mar 30, 2016 at 3:27 PM, Satrajit Ghosh notifications@github.com
wrote:

@chrisfilo https://github.com/chrisfilo is correct - that's why we need
to restrict it to what recon-all needs - which is only about 350MB - but
there is indeed an effort to again make freesurfer available through
neurodebian - which may become the smallest distribution for the binaries.


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
#1411 (comment)

@effigies
Copy link
Member Author

Okay. So, as far as this PR goes, I can report that nosetests nipype.interfaces.freesurfer.tests runs without error on my machine with FreeSurfer 5.3.0 installed.

effigies added 2 commits April 6, 2016 11:26
TraitError occurred in workflow, not when run directly.
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.5%) to 72.549% when pulling cd985f1 on effigies:mri_concat_fix into ee871ba on nipy:master.

@satra satra merged commit edff8db into nipy:master Apr 6, 2016
@effigies effigies deleted the mri_concat_fix branch April 7, 2016 00:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants