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?
Hello Matthias,
Thanks a lot for the useful answer!
There is just one more error I get which is
'pya' has no attribute 'Application'
Although I can use pya's most of the classes, my pya version doesn't support classes like Application or LayoutVi…