Skip to content

Commit

Permalink
Update to gymnasium (#82)
Browse files Browse the repository at this point in the history
* update install_requires

* §

* fix imports: gym → gymnasium

* fix step function

* fix step

* gym->gymnasium

* §

* fix

* fix

* fix

* fix

* fix

* fix render

* .

* fix all step returns

* Delete build/lib/carl directory

* Delete myenv directory

* Update README.md

Fix documentation link.

* make pre-commit and format

* rename every occurrence of trunched to truncated

* @Arman717

* change trunched to truncated

* Fix gymnasium version with box2d

---------

Co-authored-by: C. Benjamins <75323339+benjamc@users.noreply.github.com>
  • Loading branch information
2 people authored and TheEimer committed Aug 8, 2023
1 parent 9fafdc1 commit ff5837c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions carl/envs/dmc/wrappers.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
from typing import Any, Optional, Tuple, TypeVar, Union

import dm_env # type: ignore
import gym
import gymnasium as gym
import numpy as np
from dm_env import StepType
from gym import spaces
from gymnasium import spaces

ObsType = TypeVar("ObsType")
ActType = TypeVar("ActType")
Expand Down
2 changes: 1 addition & 1 deletion carl/envs/rna/carl_rna_definitions.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import numpy as np
from gym import spaces
from gymnasium import spaces

DEFAULT_CONTEXT = {
"mutation_threshold": 5,
Expand Down

0 comments on commit ff5837c

Please sign in to comment.