Skip to content

Commit

Permalink
Version 0.2.0 (#63)
Browse files Browse the repository at this point in the history
* Update twine check

* Fix return type

* Annotate inits

* Annotate args

* carl/context mypy fixed

* Fix mypy

* Handle return types of gym.Env in reset

* Fix mypy for carl_env.py

* Correct reset function

* Fix mypy

* Fix mypy brax

* Fix mypy brax

* Moved demo to examples

* Update reset signature

* Remove rendering of score label

In the current gym version, there is no score label.

* Fix mypy box2d

* Move CARLVehicleRacing example

* Update carracing example

* Fix mypy box2d

* Fix mypy

* Fix mypy

* Update reset function

* mypy dmc fish

* mypy dmc quadruped

* mypy dmc context utils

* wrapper fix

* Fix mypy mario

* mypy dmc walker

* mypy dmc loader

* Fix mypy mario

* mypy dmc

* Add changelog.md

* Add S.D. to authors

* Update version

* mario everything except from env done

* mario_env done

* Update setup.py

Remove setup.cfg and fill init with more info.

* Update gym version

* Remove RNA

* mypy corrected for everything except carl_rna

* gitignore

* Fix mypy

* Change type of contexts to Contexts

* Change type of default_context to Context

* black, isort and flake8

* Update try_dm_control.py

* Update try_dm_control.py

* Fix pre-commit

* Update changelog.md

* Update changelog.md

* Update changelog.md

* Fix tests

* Fix dist check

* Fix mypy

* Format isort

* Remove setup packages for experiments

No experiments in this branch

* Remove requirements for rna

* Update requirements

* Remove RNA

* Fix tests.yaml

* Remove operating system warning

* Add test for dmc loader

* Move to examples

* Add requirement

* Remove requirement

* Update tests.yaml

* Fix whitespace in tests.yaml

Co-authored-by: Carolin Benjamins <benjamins@tnt.uni-hannover.de>
Co-authored-by: amsks <adityak735@gmail.com>
Co-authored-by: Sebastian Döhler <sebastiandoehler@hotmail.de>
Co-authored-by: sebidoe <45859263+sebidoe@users.noreply.github.com>
  • Loading branch information
5 people authored and TheEimer committed Aug 8, 2023
1 parent 689bd58 commit e145935
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 12 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,21 +91,21 @@ jobs:
# Miniconda is available in $CONDA env var
$CONDA/bin/conda create -n testenv --yes pip wheel gxx_linux-64 gcc_linux-64 python=${{ matrix.python-version }}
$CONDA/envs/testenv/bin/python3 -m pip install --upgrade pip
$CONDA/envs/testenv/bin/pip3 install -e . [dev,dm_control]
$CONDA/envs/testenv/bin/pip3 install -e .[dev,dm_control]
- name: Source install
if: matrix.kind == 'source'
run: |
python -m pip install --upgrade pip
pip install -e . [dev,dm_control]
pip install -e .[dev,dm_control]
- name: Dist install
if: matrix.kind == 'dist'
run: |
python -m pip install --upgrade pip
python setup.py sdist
last_dist=$(ls -t dist/carl-*.tar.gz | head -n 1)
pip install $last_dist [dev,dm_control]
pip install $last_dist[dev,dm_control]
- name: Tests
timeout-minutes: 60
Expand Down
16 changes: 8 additions & 8 deletions carl/envs/gymnasium/box2d/parking_garage/race_car.py
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@ class FWDRaceCar(RaceCar):
Front wheel driven race car
"""

def _init_extra_params(self) -> None -> None:
def _init_extra_params(self) -> None:
self.rwd = False # Flag to determine which wheels are driven
self.fwd = True # Flag to determine which wheels are driven
self.trailer_type = (
Expand All @@ -542,7 +542,7 @@ class AWDRaceCar(RaceCar):
4x4 wheel driven race car
"""

def _init_extra_params(self) -> None -> None:
def _init_extra_params(self) -> None:
self.rwd = True # Flag to determine which wheels are driven
self.fwd = True # Flag to determine which wheels are driven
self.trailer_type = (
Expand All @@ -555,7 +555,7 @@ class RaceCarSmallTrailer(RaceCar):
RaceCar with small trailer attached
"""

def _init_extra_params(self) -> None -> None:
def _init_extra_params(self) -> None:
self.rwd = True # Flag to determine which wheels are driven
self.fwd = False # Flag to determine which wheels are driven
self.trailer_type = (
Expand All @@ -568,7 +568,7 @@ class FWDRaceCarSmallTrailer(RaceCar):
Front wheel driven race car
"""

def _init_extra_params(self) -> None -> None:
def _init_extra_params(self) -> None:
self.rwd = False # Flag to determine which wheels are driven
self.fwd = True # Flag to determine which wheels are driven
self.trailer_type = (
Expand All @@ -581,7 +581,7 @@ class AWDRaceCarSmallTrailer(RaceCar):
4x4 wheel driven race car
"""

def _init_extra_params(self) -> None -> None:
def _init_extra_params(self) -> None:
self.rwd = True # Flag to determine which wheels are driven
self.fwd = True # Flag to determine which wheels are driven
self.trailer_type = (
Expand All @@ -594,7 +594,7 @@ class RaceCarLargeTrailer(RaceCar):
RaceCar with small trailer attached
"""

def _init_extra_params(self) -> None -> None:
def _init_extra_params(self) -> None:
self.rwd = True # Flag to determine which wheels are driven
self.fwd = False # Flag to determine which wheels are driven
self.trailer_type = (
Expand All @@ -607,7 +607,7 @@ class FWDRaceCarLargeTrailer(RaceCar):
Front wheel driven race car
"""

def _init_extra_params(self) -> None -> None:
def _init_extra_params(self) -> None:
self.rwd = False # Flag to determine which wheels are driven
self.fwd = True # Flag to determine which wheels are driven
self.trailer_type = (
Expand All @@ -620,7 +620,7 @@ class AWDRaceCarLargeTrailer(RaceCar):
4x4 wheel driven race car
"""

def _init_extra_params(self) -> None -> None:
def _init_extra_params(self) -> None:
self.rwd = True # Flag to determine which wheels are driven
self.fwd = True # Flag to determine which wheels are driven
self.trailer_type = (
Expand Down
2 changes: 1 addition & 1 deletion carl/envs/gymnasium/box2d/parking_garage/trike.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class TukTuk(Car):
TukTuk
"""

def _init_extra_params(self) -> None -> None:
def _init_extra_params(self) -> None:
self.rwd = True # Flag to determine which wheels are driven
self.fwd = False # Flag to determine which wheels are driven (Not supported)
self.trailer_type = 0 # Determines which trailer to attach 0 -> none, 1 -> small, 2 -> large (not supported)
Expand Down
3 changes: 3 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,6 @@

# 0.1.0
- Initial release.

# 0.1.0
- Initial release.

0 comments on commit e145935

Please sign in to comment.