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

Feature/python3dot10 gym compatibility update #25

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

jbhoffman613
Copy link

Changes made:

  1. Python3.10 and Numpy Update
    1. The repo is now compatible with python 3.10.
    2. The syntax/function calls have been updated to work with the newer version of Numpy. For instance,

      .randint(...)

      was changed to

      .integer(...)

  2. New gym version 0.26
    1. Gym 0.26 now passively type checks your function outputs at runtime, and some of the return types have changed. Specifically, the reset function now needs to return an observation and a dictionary with any information:

      env.reset() -> obs, {}

    2. The return of the reset function has been updated, and the tests have also been updated, so they now pass with this change in place.
  3. The repo is not compatible with the newly updated pyglet2.* so the setup file has been changed to specify that the user needs a version of pyglet that is before version 2.
  4. Fixed the import and dependencies in the agents directory.
  5. Now, all tests pass the following is run:

    python -m pytest test_env.py

    while in the test directory and all the tests pass. At the highest level of the repo, the following can be run and the environment will be properly rendered.

    python lbforaging.py --render

…and it can run. The only thing untested is using it in a full RL loop and the rendering features.
…ersion 2 for it to still work. Changed the init file for agents and dependencies so that the correct classes are imported and point to the correct class/function/interface. Fixed and made the imports more verbose, so it is clear what is being imported where. Removed white space. Changed the raise errors to be callables instead of classes
…larifies the dependencies in the setup doc, and it is now compatible with python3.10. I also fixed the dependency issue in the agents directory and some __init__ files. All of the tests now pass, and it the rendering now works as well.
…he new gym standard API and can be run with RLLib for proof of concept work as well
@Chulabhaya
Copy link

Hi @jbhoffman613 ! I just wanted to give you thanks for bringing this environment up to date with Python/Gymnasium, and am looking forward to testing it out.

@leejasper851 leejasper851 deleted the feature/Python3dot10GymUpdate branch February 12, 2024 23:24
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.

None yet

2 participants