Skip to content

Commit

Permalink
fix: Fixed error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
RickFqt committed Oct 4, 2024
1 parent cc97280 commit 6edabcd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion urnai/rewards/reward_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ def get(
terminated: bool,
truncated: bool
) -> int:
raise NotImplementedError(...)
raise NotImplementedError("Get method not implemented. You should implement " +
"it in your RewardBase subclass.")

@abstractmethod
def reset(self) -> None: ...
3 changes: 2 additions & 1 deletion urnai/sc2/environments/stablebaselines3/custom_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ def reset(
return obs, info

def render(self, mode: str) -> None:
raise NotImplementedError(...)
raise NotImplementedError("Render method not implemented. If necessary, you " +
"should implement it in your CustomEnv subclass.")

def close(self) -> None:
self._env.close()

0 comments on commit 6edabcd

Please sign in to comment.