Counts should be ints
This commit is contained in:
parent
90a068da80
commit
bc723d96f3
@ -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))
|
||||||
|
Loading…
Reference in New Issue
Block a user