Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 26bcff74 authored by Gaetan Lepage's avatar Gaetan Lepage
Browse files

rl/wer_map_env: only warn about dir map on first step

parent c82dad56
Branches master
No related tags found
No related merge requests found
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment