Counts should be ints

This commit is contained in:
Jan Petykiewicz 2019-04-13 17:33:15 -07:00
parent 90a068da80
commit bc723d96f3

View File

@ -398,8 +398,8 @@ def _subpatterns_to_refs(subpatterns: List[SubPattern or GridRepetition]
] ]
ref = gdsii.elements.ARef(struct_name=encoded_name, ref = gdsii.elements.ARef(struct_name=encoded_name,
xy=numpy.round(xy).astype(int), xy=numpy.round(xy).astype(int),
cols=subpat.a_count, cols=numpy.round(subpat.a_count).astype(int),
rows=subpat.b_count) rows=numpy.round(subpat.b_count).astype(int))
else: else:
ref = gdsii.elements.SRef(struct_name=encoded_name, ref = gdsii.elements.SRef(struct_name=encoded_name,
xy=numpy.round([subpat.offset]).astype(int)) xy=numpy.round([subpat.offset]).astype(int))