From ab740c354e8bd26482918b12ed00c509464d1940 Mon Sep 17 00:00:00 2001 From: thatguy11325 <148832074+thatguy11325@users.noreply.github.com> Date: Sun, 27 Oct 2024 00:46:36 -0400 Subject: [PATCH] remove unneeded conditional --- pokemonred_puffer/cleanrl_puffer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pokemonred_puffer/cleanrl_puffer.py b/pokemonred_puffer/cleanrl_puffer.py index fcae5c3..8876c2a 100644 --- a/pokemonred_puffer/cleanrl_puffer.py +++ b/pokemonred_puffer/cleanrl_puffer.py @@ -284,7 +284,7 @@ def evaluate(self): with self.profile.eval_misc: # TODO: use the event infos instead of the states. # I'm always running with state saving on right now so it's alright - if self.states and "required_count" in self.infos["stats"] and self.config.early_stop: + if self.states and self.config.early_stop: to_delete = [] for event, minutes in self.config.early_stop.items(): if any(event in key for key in self.states.keys()):