-
Notifications
You must be signed in to change notification settings - Fork 15
Integration with RLlib (v3.0) #249
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
base: 3.0
Are you sure you want to change the base?
Integration with RLlib (v3.0) #249
Conversation
Greptile SummaryThis PR addresses two issues encountered when integrating PufferDrive with RLlib: fixing the relative INI file path problem and updating Gymnasium to version 1.x for compatibility. Key Changes
NotesThe observation space bounds change from Confidence Score: 4/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant User as User/RLlib
participant Drive as Drive.__init__()
participant Binding as binding C Module
participant INI as INI File
User->>Drive: Initialize environment
Note over Drive: Compute _PACKAGE_DIR from __file__
Note over Drive: Construct _INI_FILE absolute path
Drive->>Binding: Create environment with ini_file=_INI_FILE
Binding->>INI: fopen(ini_file, "r")
alt File Not Found
INI-->>Binding: NULL
Binding-->>Drive: PyErr_SetString(FileNotFoundError)
Drive-->>User: Exception raised
else File Found
INI-->>Binding: File handle
Binding->>Binding: fclose(file handle)
Binding->>INI: ini_parse(ini_file)
alt Parse Failure
INI-->>Binding: Error code < 0
Binding-->>Drive: PyErr_SetString(ValueError)
Drive-->>User: Exception raised
else Parse Success
INI-->>Binding: Configuration loaded
Binding-->>Drive: Environment initialized
Drive-->>User: Ready to use
end
end
|
Greptile found no issues!From now on, if a review finishes and we haven't found any issues, we will not post anything, but you can confirm that we reviewed your changes in the status check section. This feature can be toggled off in your Code Review Settings by deselecting "Create a status check for each PR". |
|
If we could have this back-ported to the 2.0 release as well, it would be very useful! |
|
@NellyWhads Would you like me to make the same PR but for the 2.0 branch? |
|
yes please, good sir! |
|
@NellyWhads Done in #250 What do I need to do for merging? |
|
Wow, thanks, just saw it! We'll assign a reviewer to it tomorrow |
|
Thanks @eugenevinitsky |
I've been integration PufferDrive with RLib and ran into these problems.
Also, I've made this PR for 3.0 rather than 2.0, is that correct?