Skip to content
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

Only return a retrieved_temporary_folder FolderData if non-empty #894

Merged

Conversation

sphuber
Copy link
Contributor

@sphuber sphuber commented Nov 7, 2017

This is a quick bug fix for the already closed issue #886

If no files were specified in the 'retrieve_temporary_list' of the
calculations CalcInfo, we should not pass an empty FolderData to
the parse_from_calc call of the Parser. Otherwise the parse_with_retrieved
call will always get a retrieved_temporary_folder, even if it is
empty. By setting retrieved_temporary_folder to None, unless some
files have been specified in the retrieve_temporary_list member
we maintain the original behavior of the execmanager calling the
parser

@sphuber sphuber requested a review from giovannipizzi November 7, 2017 13:51
If no files were specified in the 'retrieve_temporary_list' of the
calculations CalcInfo, we should not pass an empty FolderData to
the parse_from_calc call of the Parser. Otherwise the parse_with_retrieved
call will always get a retrieved_temporary_folder, even if it is
empty. By setting retrieved_temporary_folder to None, unless some
files have been specified in the retrieve_temporary_list member
we maintain the original behavior of the execmanager calling the
parser
@sphuber sphuber force-pushed the fix_886_retrieve_temporary_list branch from 556b40a to 88d29e6 Compare November 7, 2017 13:52
@giovannipizzi giovannipizzi merged commit 4285881 into aiidateam:develop Nov 8, 2017
@sphuber sphuber deleted the fix_886_retrieve_temporary_list branch November 8, 2017 08:50
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.

2 participants