forked from jan/fatamorgana
[GridRepetition] convert to expected types
This commit is contained in:
parent
5b42cdf609
commit
c869da03bf
1 changed files with 4 additions and 0 deletions
|
|
@ -1213,6 +1213,10 @@ class GridRepetition:
|
||||||
InvalidDataError: if `b_count` and `b_vector` inputs conflict
|
InvalidDataError: if `b_count` and `b_vector` inputs conflict
|
||||||
with each other or if `a_count < 1`.
|
with each other or if `a_count < 1`.
|
||||||
"""
|
"""
|
||||||
|
a_count = int(a_count)
|
||||||
|
if b_count is not None:
|
||||||
|
b_count = int(b_count)
|
||||||
|
|
||||||
if b_vector is None or b_count is None:
|
if b_vector is None or b_count is None:
|
||||||
if b_vector is not None or b_count is not None:
|
if b_vector is not None or b_count is not None:
|
||||||
raise InvalidDataError('Repetition has only one of'
|
raise InvalidDataError('Repetition has only one of'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue