diff --git a/fatamorgana/basic.py b/fatamorgana/basic.py index 3c35d5e..70da126 100644 --- a/fatamorgana/basic.py +++ b/fatamorgana/basic.py @@ -1213,6 +1213,10 @@ class GridRepetition: InvalidDataError: if `b_count` and `b_vector` inputs conflict 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 not None or b_count is not None: raise InvalidDataError('Repetition has only one of'