Exception not forwarded to console if reward has wrong format
Bug Issue
Description
If an environment returns its EnvironmentState
with a single RewardInformation
object instead of a list of objects, the experiment dies without an exception being thrown in the console. An Exception is thrown and can be found when debugging and setting a breakpoint in line 557 of the simulation_controller.py
and then inspecting the tasks_done
list. But this exception never gets shown to the user, which makes simple mistakes in the environment design take ages to debug.
Order to Approach
In the update
method of an environment, an EnvironmentState
object is returned. In this object, replace the List of rewards with a single RewardInformation
object to reproduce the behavior.
Bug-Checklist
-
Can you reproduce the problem? -
Are you running the latest version? -
Are you in the master/development branch? -
Have you installed the newest requirements?
Steps to Reproduce the Problem
Specifications
- Pythonversion: 3.8