Skip to content

Commit

Permalink
fix max_episode_steps condition
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderManich committed Apr 15, 2024
1 parent 99a3ccc commit 83089b4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/fastfiz_env/envs/simple_fastfiz.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ def __init__(

def _max_episode_steps(self):
if (
hasattr(SimpleFastFiz, "_time_limit_max_episode_steps")
and self.get_wrapper_attr("_time_limit_max_episode_steps") is not None
#hasattr(SimpleFastFiz, "_time_limit_max_episode_steps")
self.get_wrapper_attr("_time_limit_max_episode_steps") is not None
):
self.max_episode_steps = self.get_wrapper_attr(
"_time_limit_max_episode_steps"
Expand Down
2 changes: 1 addition & 1 deletion src/learn.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
)
from stable_baselines3 import PPO
import fastfiz_env
from fastfiz_env.reward_functions import DefaultReward, WinningReward
from fastfiz_env.reward_functions import DefaultReward
from fastfiz_env.reward_functions.common import *
import os
from fastfiz_env.wrappers import FastFizActionWrapper, ActionSpaces
Expand Down

0 comments on commit 83089b4

Please sign in to comment.