diff --git a/masque/file/gdsii.py b/masque/file/gdsii.py index 8d120c7..79a8f67 100644 --- a/masque/file/gdsii.py +++ b/masque/file/gdsii.py @@ -277,7 +277,7 @@ def read(filename: str, else: shape = Polygon(vertices=element.xy[:-1], layer=(element.layer, element.data_type)) - if do_clean: + if clean_vertices: try: shape.clean_vertices() except PatternError: