From 11bbf6aa0b402bfafeb44491bc18c8a49db0d2e4 Mon Sep 17 00:00:00 2001 From: Jan Petykiewicz Date: Tue, 16 Apr 2019 00:41:18 -0700 Subject: [PATCH] Fix auto-renaming for structures --- 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 85d77ea..fdf7086 100644 --- a/masque/file/gdsii.py +++ b/masque/file/gdsii.py @@ -468,7 +468,7 @@ def _disambiguate_pattern_names(patterns): if suffixed_name != sanitized_name: logger.warning('Pattern name "{}" appears multiple times; renaming to "{}"'.format(pat.name, suffixed_name)) - encoded_name = sanitized_name.encode('ASCII') + encoded_name = suffixed_name.encode('ASCII') if len(encoded_name) == 0: raise PatternError('Zero-length name after sanitize+encode, originally "{}"'.format(pat.name)) if len(encoded_name) > 32: