flip add_state_info

This commit is contained in:
robcaulk 2022-12-07 19:49:39 +01:00
parent 9b4364ddc3
commit 7b3406914c

View File

@ -83,6 +83,7 @@ class BaseEnvironment(gym.Env):
if dp: if dp:
self.live = dp.runmode in (RunMode.DRY_RUN, RunMode.LIVE) self.live = dp.runmode in (RunMode.DRY_RUN, RunMode.LIVE)
if not self.live and self.add_state_info: if not self.live and self.add_state_info:
self.add_state_info = False
logger.warning("add_state_info is not available in backtesting. Deactivating.") logger.warning("add_state_info is not available in backtesting. Deactivating.")
def reset_env(self, df: DataFrame, prices: DataFrame, window_size: int, def reset_env(self, df: DataFrame, prices: DataFrame, window_size: int,