-
Notifications
You must be signed in to change notification settings - Fork 17
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
Message passing with more information #291
Merged
unkcpz
merged 17 commits into
aiidateam:master
from
unkcpz:Message-passing-with-more-information
Dec 13, 2024
Merged
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
1117eeb
amend from rebase
unkcpz b82791d
Add default MESSAGE_KEY to None value and FORCE_KILL_KEY
unkcpz d4c0489
Alias MessageType for message passing
unkcpz c5a195c
Simplify _create_state_instance so it only need to do real create
unkcpz 8db6675
Furthur simplipy _create_state_instant only create state from class
unkcpz 74d048d
Killed state all through passing msg
unkcpz 667af7a
Amend
unkcpz 4be6931
If transition_to None do noting
unkcpz 88259d6
KillMessage build msg from parameters
unkcpz c3c9db4
Pause/Play/Status all using message builder
unkcpz d0e4e73
Remove duplicate codes
unkcpz e3c2ae8
Future type annotation
unkcpz e5c74ad
Fix doc
unkcpz 17a541a
Mapping states from state name
unkcpz e82824b
Merge branch 'master' into Message-passing-with-more-information
sphuber 80b3458
rali
unkcpz d725a51
Ali's api for message constructor
unkcpz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
why is this change and what does it mean?
also please note the default value
None
is taken away, is this backward compatible?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.
This function inside plumpy is only called:
I did the same to create the state first and then pass to the function for consistency as
transition_to
.It depends, I think we don't have a clear public API list for plumpy. Since aiida-core didn't use this directly, it does not break backward compatibility of
aiida-core
.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.
ok, agreed, I'm also not so strict in this case, since so far
aiida-core
is the only known dependent of thisplumpy