Skip to content

Conversation

@SztoDwa
Copy link

@SztoDwa SztoDwa commented Nov 26, 2023

  • reorganized imports - automatically changed order of imports in some files and removed unused,
  • added explicit typing to all fields and methods in RedGymEnv (and all files that use this class)
  • as almost all methods and fields in RedGymEnv are private, they were renamed to start with _underscore

Warning: not tested against older versions of python 3

* reorganized imports - automatically changed order of imports in some files and removed unused,
* added explicit typing to all fields and methods in RedGymEnv (and all files that use this class)
* as almost all methods and fields in RedGymEnv are private, they were renamed to start with _underscore

Warning: not tested against older versions of python 3
Also added some missed type hints
@cmarqu
Copy link

cmarqu commented Nov 28, 2023

Having typing would allow using mypyc which reportedly can bring quite some speed improvements.

@PWhiddy
Copy link
Owner

PWhiddy commented Nov 30, 2023

Hi! Looks nice! How thoroughly have you tested all of these changes? Also was the change of default environments from 16 to 4 intentional?

@SztoDwa
Copy link
Author

SztoDwa commented Nov 30, 2023

Testing was not too thorough - I successfully started learning on the "_fast" script as well as the old one. The interactive mode script also works.

As for 16 -> 4 change - no, I changed it so that it runs on my old PC well, and left it in by accident. Fixing that ASAP.

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