-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Retrieve last logged val from result by key #3049
Conversation
Hello @justusschock! Thanks for updating this PR. There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻 Comment last updated at 2020-08-19 13:54:57 UTC |
Codecov Report
@@ Coverage Diff @@
## master #3049 +/- ##
======================================
Coverage 90% 90%
======================================
Files 81 81
Lines 7673 7678 +5
======================================
+ Hits 6913 6918 +5
Misses 760 760 |
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.
test fails on master, LGTM 👍
@@ -45,6 +45,12 @@ def __init__( | |||
} | |||
} | |||
|
|||
def __getitem__(self, key: Union[str, Any]) -> Any: | |||
try: | |||
return super().__getitem__(key) |
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.
self.get(key) does not work?
What does this PR do?
If you log a key to the result object, the last logged step value can be retrieved by indexing with the name, even though it may have changed internally.
Before submitting
PR review
Anyone in the community is free to review the PR once the tests have passed.
If we didn't discuss your PR in Github issues there's a high chance it will not be merged.
Did you have fun?
Make sure you had fun coding 🙃