Door Parameter Assertion

This commit is contained in:
Steffen Illium
2022-01-18 13:52:59 +01:00
parent 51fb73ebb8
commit 3e19970a60
2 changed files with 6 additions and 3 deletions

View File

@ -97,7 +97,10 @@ class BaseFactory(gym.Env):
rewards_base = RewardsBase(**rewards_base)
assert obs_prop.frames_to_stack != 1 and \
obs_prop.frames_to_stack >= 0, "'frames_to_stack' cannot be negative or 1."
obs_prop.frames_to_stack >= 0, \
"'frames_to_stack' cannot be negative or 1."
assert doors_have_area or not obs_prop.indicate_door_area, \
'"indicate_door_area" can only active, when "doors_have_area"'
if kwargs:
print(f'Following kwargs were passed, but ignored: {kwargs}')