[GridRepetition] convert to expected types

This commit is contained in:
Jan Petykiewicz 2026-02-15 19:21:28 -08:00
commit c869da03bf

View file

@ -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'