Skip to content
This repository has been archived by the owner on Dec 11, 2022. It is now read-only.

Correct error type + order + error text #460

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions rl_coach/filters/observation/observation_stacking_filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,10 @@ def __init__(self, stack_size: int, stacking_axis: int=-1):
self.stack = []
self.input_observation_space = None

if stack_size <= 0:
raise ValueError("The stack shape must be a positive number")
if type(stack_size) != int:
raise ValueError("The stack shape must be of int type")
raise TypeError("The stack shape must be of int type")
if stack_size < 2:
raise ValueError("Cannot stack less than 2 frames")

@property
def next_filter(self) -> 'InputFilter':
Expand Down