Skip to content

FIX: Do not generate filename when required fields are missing #2549

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 4 commits into from
Apr 26, 2018

Conversation

effigies
Copy link
Member

Fixes #2506.

Changes proposed in this pull request

  • Do not generate filename from name_source when required fields are missing

This doesn't address the situation where name_source='in_files', but requires does not include 'in_files'. Is it always desired that an undefined name_source implies an undefined derivative trait, or should we require requires to ensure this behavior?

Will add tests.

@effigies effigies added this to the 1.0.3 milestone Apr 24, 2018
@codecov-io
Copy link

codecov-io commented Apr 24, 2018

Codecov Report

Merging #2549 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2549      +/-   ##
==========================================
+ Coverage   67.08%   67.09%   +<.01%     
==========================================
  Files         332      332              
  Lines       42509    42510       +1     
  Branches     5264     5266       +2     
==========================================
+ Hits        28518    28521       +3     
+ Misses      13289    13288       -1     
+ Partials      702      701       -1
Flag Coverage Δ
#smoketests 50.66% <71.42%> (ø) ⬆️
#unittests 64.39% <100%> (ø) ⬆️
Impacted Files Coverage Δ
nipype/interfaces/niftyfit/dwi.py 95.74% <100%> (-0.12%) ⬇️
nipype/interfaces/base/core.py 89.33% <100%> (+0.07%) ⬆️
nipype/interfaces/spm/base.py 87.45% <0%> (+0.66%) ⬆️

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 a1ab518...0b07124. Read the comment docs.

@effigies
Copy link
Member Author

This is ready for review, though an unrelated test timed out. I wonder if these intermittent timeouts are related to #2548.

@satra satra merged commit fde07fa into nipy:master Apr 26, 2018
@effigies effigies deleted the fix/name_source branch April 26, 2018 01:19
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