diff --git a/rl_audio_nav/rl/environments/map_envs/wer_map_env.py b/rl_audio_nav/rl/environments/map_envs/wer_map_env.py index df5efa5e61acca29f97abe798512d0f5768f4144..831c0a835b19b31a86fc3a86977141b0108e5ceb 100644 --- a/rl_audio_nav/rl/environments/map_envs/wer_map_env.py +++ b/rl_audio_nav/rl/environments/map_envs/wer_map_env.py @@ -297,9 +297,11 @@ class RlanWerMapEnv(RlanEnv): wer = wer_map_array[n_x, n_y, agent_orientation] else: - self._logger.warning( - "Array is directional, but WER map isn't!\nFalling back to W[x, y] WER" - ) + # Only warn on the first step, otherwise it is too verbose + if self.step_counter == 0: + self._logger.warning( + "Array is directional, but WER map isn't!\nFalling back to W[x, y] WER" + ) wer = wer_map_array[n_x, n_y] else: