Skip to content

Commit

Permalink
MAINT: add error message
Browse files Browse the repository at this point in the history
  • Loading branch information
Heerozh committed Feb 29, 2020
1 parent 7407a9d commit faf062b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spectre/factors/factor.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,8 @@ def __init__(self, win: Optional[int] = None, inputs: Optional[Sequence[BaseFact
self.win = win
if inputs:
self.inputs = inputs
assert isinstance(self.inputs, (list, tuple, type(None))), 'inputs must be a list.'
assert isinstance(self.inputs, (list, tuple, type(None))), '`factor.inputs` must be a list.'
assert isinstance(self.win, int), '`factor.win` must be a integer.'

assert (self.win >= (self._min_win or 1))

Expand Down

0 comments on commit faf062b

Please sign in to comment.