From baa0c66baddf002df38b847b2cf2654f099a6790 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Philipp=20G=C3=BChring?= <pg@futureware.at>
Date: Sun, 26 Feb 2023 16:28:36 +0100
Subject: [PATCH] Adding name to the moves for easier navigation in KLayout

---
 DanubeRiver/__init__.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/DanubeRiver/__init__.py b/DanubeRiver/__init__.py
index c0e9c6c..dd127fb 100644
--- a/DanubeRiver/__init__.py
+++ b/DanubeRiver/__init__.py
@@ -102,7 +102,10 @@ class DanubeTestWafer(gf.Component):
 				# place structure
 				xp = lph.value_to_grid(self.config, xpos)
 				yp = lph.value_to_grid(self.config, ypos+row['h']-st.ysize)
-				strarea << st.move([xp, yp])
+				stx = st.move([xp, yp])
+				stx.name = st.name
+				st.name+="_"
+				strarea << stx
 				# add to documentation
 				if self.doc is not None:
 					self.doc.add_cell(st,[xp, yp])
-- 
GitLab