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

Save and load the parsed inputs from the persisted state #1362

Merged

Conversation

sphuber
Copy link
Contributor

@sphuber sphuber commented Mar 30, 2018

Fixes #1361

This is an issue in plumpy that was also fixed there.
The parsed inputs of a Process, which is returned by calling self.inputs,
were being rebuilt from the raw inputs everytime the process was loaded
from a persisted state. This meant that inputs that were not explicitly
passed by the user and were populated with the defaults specified by the
port, were being recreated upon reloading the instance. However, they
should have been the ones that were created when the process was created
the first time around. Therefore we persist the parsed inputs to the saved
state and reload them instead of recreating them with create_input_args

@sphuber sphuber requested a review from muhrin March 30, 2018 15:36
@sphuber sphuber force-pushed the fix_1361_persist_process_parsed_inputs branch 4 times, most recently from d1cea3b to d33c707 Compare March 30, 2018 17:33
This is an issue in plumpy that was also fixed there.
The parsed inputs of a Process, which is returned by calling self.inputs,
were being rebuilt from the raw inputs everytime the process was loaded
from a persisted state. This meant that inputs that were not explicitly
passed by the user and were populated with the defaults specified by the
port, were being recreated upon reloading the instance. However, they
should have been the ones that were created when the process was created
the first time around. Therefore we persist the parsed inputs to the saved
state and reload them instead of recreating them with `create_input_args`
@sphuber sphuber force-pushed the fix_1361_persist_process_parsed_inputs branch from d33c707 to dfa105b Compare March 30, 2018 17:43
@muhrin muhrin merged commit 5f37ba2 into aiidateam:workflows Apr 2, 2018
@muhrin muhrin deleted the fix_1361_persist_process_parsed_inputs branch April 2, 2018 13:45
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