From 1127242aa06cf1359bf00f7ad2a33762d2442643 Mon Sep 17 00:00:00 2001 From: jan Date: Thu, 24 Aug 2017 15:35:10 -0700 Subject: [PATCH] fix typo --- masque/file/gdsii.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/masque/file/gdsii.py b/masque/file/gdsii.py index 06ff2d4..f3d3f8c 100644 --- a/masque/file/gdsii.py +++ b/masque/file/gdsii.py @@ -88,7 +88,7 @@ def write_dose2dtype(pattern: Pattern, data_type = dose_vals_list.index(polygon.dose * pat_dose) xy_open = numpy.round(polygon.vertices + polygon.offset).astype(int) xy_closed = numpy.vstack((xy_open, xy_open[0, :])) - if hasattr('__len__', polygon.layer): + if hasattr(polygon.layer, '__len__'): layer = polygon.layer[0] else: layer = polygon.layer