It looks like you're new here. If you want to get involved, click one of these buttons!
I'm having a small problem with LayoutView.reload_layout. It seems to make the current cell view's technology blank but not nil. I'm using KLayout 0.24-python-eval on 64-bit Windows 7.
I notice this problem with the following steps:
<open a GDS>
mw = RBA::Application.instance.main_window
lv = mw.current_view
cv = lv.active_cellview
cv.technology # This returns the name of the current technology
lv.reload_layout(0)
cv.technology # This is now blank
I changed the technology with the technology button (the T in a circle) and while the layer definitions changed, the label in the bottom left-hand corner did not change.
Everything behaves properly once I open a new panel and return to the original, but I cannot do this in a script. I can write my script to deal with blank technologies, but I feel that reload_layout should not clear the cell view's technology.
Is there any time when the technology is intentionally blank?
Also, when would reload_layout take a non-zero cell view index?
ETA: I found that if I re-read mw from RBA::Application.instance.main_window, I can get the technology from the cell view. I still see that the label in the bottom left-hand corner is not changing, though.
Thanks and regards,
Z Lim
Comments
Hi zlim,
thanks for mentioning this issue. That's a bug. I'm afraid the only workaround until the real fix will be to close and re-open the layout or to store and restore the technology after the reload. But the problem also persists when reloading from the menu. Hence it needs to be fixed.
Thanks,
Matthias