Skip to content

FIX: allow grabbing a single file (fix bug assuming string is not ite… #2147

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 1 commit into from
Aug 12, 2017
Merged

FIX: allow grabbing a single file (fix bug assuming string is not ite… #2147

merged 1 commit into from
Aug 12, 2017

Conversation

lukassnoek
Copy link
Contributor

Changes proposed in this pull request

  • Fix bug in S3DataGrabber due to the assumption that Python strings are not iterable (they are) as outlined in nipype.interfaces.io. As a consequence, when you only want to grab a single file from S3, it will cause the interface to loop over the characters of the string specifying the S3-path and subsequently break when trying to download the file. I replaced the hasattr(val, '__iter__') with:

isinstance(val, (list, tuple, set))

which now allows for grabbing of a single file.

@codecov-io
Copy link

codecov-io commented Aug 9, 2017

Codecov Report

Merging #2147 into master will not change coverage.
The diff coverage is 0%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #2147   +/-   ##
=======================================
  Coverage   72.19%   72.19%           
=======================================
  Files        1158     1158           
  Lines       58032    58032           
  Branches     8336     8336           
=======================================
  Hits        41895    41895           
  Misses      14815    14815           
  Partials     1322     1322
Flag Coverage Δ
#smoketests 72.19% <0%> (ø) ⬆️
#unittests 69.83% <0%> (ø) ⬆️
Impacted Files Coverage Δ
nipype/interfaces/io.py 53.07% <0%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4b587d6...72e8fd2. Read the comment docs.

@satra satra merged commit cf9e64e into nipy:master Aug 12, 2017
@satra satra added this to the 0.14.0 milestone Oct 20, 2017
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.

3 participants