allow using a string for the layer

Can't use it in gdsii, but no reason to forbit it in masque...
This commit is contained in:
Jan Petykiewicz 2020-05-17 14:11:47 -07:00
commit 8302286a7a
4 changed files with 10 additions and 6 deletions

View file

@ -55,7 +55,7 @@ class Label:
@property
def layer(self) -> layer_t:
"""
Layer number (int or tuple of ints)
Layer number or name (int, tuple of ints, or string)
"""
return self._layer