I finally fixed this issue,
I noticed that this command can work in my regular cmd terminal but not from a cmd terminal opened via my python environment.
I compared the working cmd environment with not working cmd environment and found out that not…
I will attach this code in case anyone encounters the same error. Just like Matthias mentioned it is about db_plugins folder.
The issue is pyinstaller is not adding db_plugins folder into klayout folder as dependency which is indicated with red mark…
Thanks for testing it!
A question came up to my mind. Will it also work when we run script outside of klayout IDE? I run most of my scripts outside of Klayout IDE. I just do pip install klayout and import pya to my script.
Thanks @Matthias
How can I keep track of the progress of the bug fix? (Like is there a way to watch the ticket and get notified when it is solved?)
Do you have any estimate on when it would be fixed?
Again many thanks!
Regards,
Ege_Bey
Hi @sekigawa
I tried your steps as well with the oas files you have attached.
1- I opened troublesome_taper.oas.
2- Saved as troublesome_taper_mytry.oas with the settings you have provided.
3- Opened troublesome_taper_mytry.oas and ran
pya.CellVi…
Hi @Matthias
I just downloaded version 0.29.4,
tried the following code on the layout you see in screen shot. It didn't work unfortunately.
pya.CellView.active().cell.set_property(2,3)print(pya.CellView.active().cell.name)print('ran')
(Image)
M…
Hi Sebastian!
Thanks a lot! setting layout.dbu = 1./10000 solved my problem :wink:
It is amazing what single "." can do :smiley: That "." could cause me hours of struggle!
Thanks again :smile: !
I think I found the answer. Hope this helps to any other people who need to do the same task. It is really nice that you can even do it for multiple layers simultaneously! This will give you the absolute coordinates of each shape for a given cell an…
Hello Matthias,
sorry for the late answer. I am not sure about the answer to this question because I didn't install the python (it is a shared computer).
However, I solved the problem by adding the location of the module folder into system path by …
Hello, you may get topological_sort error if you have an inconsistent hierarchy. Let's say you made cell with index 1(cell-1) a parent of cell with index 2 (cell-2), and after that if you are trying to make cell-2 also a parent of cell-1 you may get…
I answered my own question lol
layout=pya.Layout()a=pya.LayoutQuery.new("select cell.name, path_trans * cell.bbox, path_trans.disp.x, path_trans.disp.y from instances of ...*")for q in a.each(layout): print(q.data())
I found the answer as ruby code but having hard times to translate it into python.
I would really appreciate the help. :)
Thank you!
ly = RBA::CellView::active.layout# for batch mode save this text to "this_script.rb" and use# ly = RBA:…
Hello matthias, I found the solution but thanks anyways!
transPoint=pya.Point(0,0) trans = pya.Trans(transPoint) Instance_cell_index=0 subInst = pya.CellInstArray(0, trans) #first arg is…
Hello, Eugene!
Thanks for the answer. I will take a look.
By the way is there a way to read data from CSV files using pandas library? I can call libraries like numpy in Klayout but when I try to call pandas it says no module named pandas
@EugeneZelenko , I looked through the forum but still couldn't solve the problem. Could you please direct me which part of the document should I focus?
Also do you know the reason of this problem?