-
Notifications
You must be signed in to change notification settings - Fork 533
bug for datagrabber #1915
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
bug for datagrabber #1915
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1915 +/- ##
==========================================
+ Coverage 67.43% 67.49% +0.05%
==========================================
Files 1224 1225 +1
Lines 60187 60308 +121
Branches 8647 8649 +2
==========================================
+ Hits 40590 40703 +113
- Misses 18471 18489 +18
+ Partials 1126 1116 -10
Continue to review full report at Codecov.
|
@mgxd - could you please review this and make sure it functions as intended in the description for raise_on_empty? |
@anbai106 maybe we can add a new input field |
@anbai106 the behavior you want would require a new input for datagrabber - something along the lines of ...
if self.inputs.drop_blank_outputs:
outputs[key] = [x for x in outputs[key] if x is not None]
else:
if any([val is None for val in outputs[key]]):
outputs[key] = []
... this behavior will potentially return lists of different sizes, which is dangerous when working with mapnodes / iterables across runs - thus, better to make a new input rather than build off of (linking to related issue #1783) This is very close to merge! |
Hi @anbai106, are you going to have time to finish this up, soon? |
@anbai106 we're just missing two things: could add a new input for nipype/nipype/interfaces/io.py Line 1039 in 166e06c
and make the changes from the earlier comment? If you don't find time, we could make the changes for you, if that would be easier. Thanks! |
@mgxd , I am doing it now, if I make it wrong this time, you will be in charge of it, haha |
@mgxd I corrected like you proposed and merge my branch into the master branch, can you check if everything is ok? |
@anbai106 you'll have to |
Hi @anbai106, I think you merged into your own master branch, which isn't going to show up here. Try the following: git remote add upstream git@github.com:nipy/nipype.git
git fetch upstream This will make the official master branch available to you as git checkout anbai
git merge master Finally, I would recommend merging the current master, just to update the tests, then push: git merge upstream/master
git push |
@effigies finally, I think it is done :) |
@mgxd I think this is ready, unless you need tests. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are two other classes in the io.py file, they maybe have the same problem, if you think my change works, you can also change the other two classes.