Skip to content

Port InlineCalculations to go through the Process layer#1124

Merged
sphuber merged 4 commits into
aiidateam:workflowsfrom
sphuber:fix_1123_inline_calc_process
Feb 16, 2018
Merged

Port InlineCalculations to go through the Process layer#1124
sphuber merged 4 commits into
aiidateam:workflowsfrom
sphuber:fix_1123_inline_calc_process

Conversation

@sphuber
Copy link
Copy Markdown
Contributor

@sphuber sphuber commented Feb 15, 2018

Fixes #1123

Ported inline calculations to use workfunction mechanism

Along the way discovered that default values were not checked in inline
calculations for being Data types. This is now added.

Found bug in workfunctions mechanism that was not using defaults correctly
and therefore before this commit any default values in workfunctions were
at risk of being wrong (by at risk I mean 100% wrong).

Also discovered problem in plumpy when a default value was not passed. This
was being passed as None and was therefore not being differentiated from an
unspecified value when being validated.

Along the way discovered that default values were not checked in inline
calculations for being Data types.  This is now added.

Found bug in workfunctions mechanism that was not using defaults correctly
and therefore before this commit any default values in workfunctions were
at risk of being wrong (by at risk I mean 100% wrong).

Also discovered problem in plumpy when a default value was not passed.  This
was being passed as None and was therefore not being differentiated from an
unspecified value when being validated.
@sphuber sphuber requested a review from muhrin February 15, 2018 18:08
The process state terminology CANCELLED/FAILED was changed to
KILLED/EXCEPTED in a recent plumpy update
The process state terminology CANCELLED/FAILED was changed to
KILLED/EXCEPTED in a recent plumpy update
@sphuber sphuber merged commit 365bf44 into aiidateam:workflows Feb 16, 2018
@sphuber sphuber deleted the fix_1123_inline_calc_process branch February 16, 2018 06:54
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.

1 participant