It looks like you're new here. If you want to get involved, click one of these buttons!
Hi, I faced a problem with layer updating/file reload. My code structure is like the one below..
Top file as a pcells library import each pcell module. In each pcell module, I import the layer module and define each pcell class. In the class code, I use param method to define the default layer. In the layer module, I define a class Layer and create a method QTL_layers.
My problem is I can't update the layer's info in Class Layers by rerunning the top file. The file's path is correct I think, so when I rerun the top file, all imported files should be updated. And it works in when I change Class CPW logic code. Only when I close klayout and restart it, it just update layer info.
Comments
Hi @HWY,
"import" statements are always only executed once and then never again, until you close KLayout.
This is quite a common issue as it seems, so there are solutions. See for example here: https://stackoverflow.com/questions/684171/how-to-re-import-an-updated-package-while-in-python-interpreter
Matthias