diff --git a/masque/file/gdsii.py b/masque/file/gdsii.py index 7e512c0..427e516 100644 --- a/masque/file/gdsii.py +++ b/masque/file/gdsii.py @@ -398,8 +398,8 @@ def _subpatterns_to_refs(subpatterns: List[SubPattern or GridRepetition] ] ref = gdsii.elements.ARef(struct_name=encoded_name, xy=numpy.round(xy).astype(int), - cols=subpat.a_count, - rows=subpat.b_count) + cols=numpy.round(subpat.a_count).astype(int), + rows=numpy.round(subpat.b_count).astype(int)) else: ref = gdsii.elements.SRef(struct_name=encoded_name, xy=numpy.round([subpat.offset]).astype(int))