Skip to content

Commit

Permalink
Remove wblogger for now.
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinzakka committed Dec 31, 2022
1 parent 2e15771 commit 0804655
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 102 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
[pypi-versions-badge]: https://img.shields.io/pypi/pyversions/dm_env_wrappers
[pypi-badge]: https://badge.fury.io/py/dm_env_wrappers.svg
[pypi]: https://pypi.org/project/dm_env_wrappers/
[tests-badge]: https://img.shields.io/github/actions/workflow/status/kevinzakka/dm_env_wrappers/test.yml?branch=main
[tests-badge]: https://github.com/kevinzakka/dm_env_wrappers/actions/workflows/build.yml/badge.svg
[tests]: https://github.com/kevinzakka/dm_env_wrappers/actions/workflows/build.yml

`dm_env_wrappers` is a collection of frequently-used wrappers for environments that respect the [dm_env](https://github.com/deepmind/dm_env) interface (e.g., dm_control suite/composer envs).
Expand Down
3 changes: 0 additions & 3 deletions dm_env_wrappers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
from dm_env_wrappers._src.step_limit import StepLimitWrapper
from dm_env_wrappers._src.validate_spec import ValidateActionSpecWrapper
from dm_env_wrappers._src.video import VideoWrapper
from dm_env_wrappers._src.wandb_logger import WandbLoggerWrapper, wblog

__version__ = "0.0.6"

Expand All @@ -35,8 +34,6 @@
"StepLimitWrapper",
"ValidateActionSpecWrapper",
"VideoWrapper",
"WandbLoggerWrapper",
"wblog",
"wrap_all",
)

Expand Down
3 changes: 1 addition & 2 deletions dm_env_wrappers/_src/episode_statistics.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

import dm_env

from dm_env_wrappers._src import base, wandb_logger
from dm_env_wrappers._src import base


class EpisodeStatisticsWrapper(base.EnvironmentWrapper):
Expand Down Expand Up @@ -43,7 +43,6 @@ def step(self, action) -> dm_env.TimeStep:
self._episode_length = 0
return timestep

@wandb_logger.wblog
def get_statistics(self) -> Dict[str, float]:
"""Returns the mean return and length of the last `deque_size` episodes."""
if not self._return_queue or not self._length_queue:
Expand Down
96 changes: 0 additions & 96 deletions dm_env_wrappers/_src/wandb_logger.py

This file was deleted.

0 comments on commit 0804655

Please sign in to comment.