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

feat: adding info - is_success #208

Merged
merged 6 commits into from
Oct 23, 2024

Conversation

GianiStatie
Copy link
Collaborator

Adding the ability to pass game info to the Python code, specifically if a run is_success. This gives more info to the developer when a simulation ends and they want to know the outcome.

This MR links to:

And is blocked by:

@GianiStatie
Copy link
Collaborator Author

For now I'll update the code to set info = None as default, if the environments do not support it yet.

I will open another issue to update the examples such that they return the correct value, once this and the linked MRs are merged.

Copy link
Collaborator

@Ivan-267 Ivan-267 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey, thanks for adding this feature! I haven't reviewed it in-depth yet, so this is just some initial feedback.

I will open another issue to update the examples such that they return the correct value, once this and the linked MRs are merged.

I wonder if it might be better to keep this backwards compatible, such that it doesn't break existing environments, this makes it easier for people to upgrade (or use older plugin versions with the current GDRL). While not all updates are backward compatible, when it's easy to do it can be an advantage.

At some future point we can remove this backward compatibility. Since you already implemented the backward compatibility, I would personally recommend it to stay for now.

Copy link
Collaborator

@Ivan-267 Ivan-267 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this one is fine - but before we merge this, I'd like to check the plugin and make some suggestions there.

@Ivan-267
Copy link
Collaborator

Ivan-267 commented Oct 21, 2024

I'll push the docs to this PR as it's connected to the plugin PR, no need to start a new one.

Copy link
Collaborator

@Ivan-267 Ivan-267 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one should be ready - pending review by @edbeeching

Again, thanks very much for implementing this.

@GianiStatie
Copy link
Collaborator Author

Again, thanks very much for implementing this.

It wasn’t a big deal. Thanks for doing the tutorial and being so tedious 🙏

Removes the unnecessary resetting of is_success to false (the auto reset could be delayed based on action_repeat, so it's better to specify true or false every time when setting done = true to make sure it's up to date).
Copy link
Owner

@edbeeching edbeeching left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, LGTM

@GianiStatie GianiStatie merged commit 1bcd006 into edbeeching:main Oct 23, 2024
13 checks passed
@GianiStatie GianiStatie deleted the giani/passing-info branch October 23, 2024 20:00
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.

3 participants