sebastian

Test code

About

Username
sebastian
Joined
Visits
25
Last Active
Roles
Member

Comments

  • The automatically built Ubuntu .deb is not compatible with debian (stable), as usually their releases are too far apart and they use some different package names (it can happen that they are if their releases of the LTS versions are only a couple o…
  • Should be here I think: https://github.com/KLayout/klayout/tree/master/src/db/db/glyphs
  • (Quote) Did you inspect the returned objects of both? ;) They aren't the same. One is a DBox and the other a Box. There are 2 types of geometric objects. Integer based ones (Polygon/Edge/Box/...) and float based ones (DPolygon/DEdge/DBox/...). GDSI…
  • I don't think a RecursiveShapeIterator is what you want. If you did that, you will flatten the cell effectively (on the layer you want to swap from). And as with many iterators, it is a bad idea to delete the objects you are iterating over. If you w…
  • Hi Matthias, I think I can somewhat confirm. I don't have the same exact error as Florian, but I am running on Debian 11 with Python 3.9.2 (default, Feb 28 2021, 17:03:44) [GCC 10.2.1 20210110] on linux with both klayout==0.27.10 and the newest …
  • According tot the API you should get the Shape object back when inserting https://www.klayout.de/doc-qt5/code/class_Shapes.html#method59 So this should work: shape = tcp.shapes(l3_id).insert(box) shape.set_property(key, value) Sebastian
  • Hi Matthias, Very fair point. To my knowledge there is nothing that would warrant having to ship the python package with the .deb. So I would vote for removing it from the python module then. Otherwise, it could impact virtual environments if the…
  • I just tried editing to see whether that was the case, but no, even if I replace them in FF on desktop, it doesn't fix it ¯\_(ツ)_/¯
  • @Matthias I am not sure why it didn't work, that's exactly how I wrote it (the first time). Could the problem be that I authored it on mobile? Test Code In here it works now (from desktop). But I cannot even edit the comment anymore to allow it to…
  • https://github.com/KLayout/klayout/blob/master/scripts/makedeb.sh Is probably what you are looking for ;) On another note: @Matthias would it be possible that we separate the python package from the main .deb (and probably rpm too)? I would sugge…
  • What you are looking for is the `RecursiveShapeIterator`. If you purely want a shapes object you can do it with this: ``` SourceShapes = pya.Shapes() SourceShapes.insert(ParentCell.begin_shapes_rec(SourceLayer)) ``` What I suspect is wha…
  • Of course it will still require certain qt libraries, the build still runs qmake, so I am quite sure you still need some basic qt libs to compile, that doesn't mean that the endproduct uses them. Build requirements vs used libs.
  • The last error (21) indicates that something in your path structure is a directory instead of whatever you want to do and it's an illegal operation for a director. I assume you expect to write something to a file that is actually a directory. POSIX …
  • @atork have you tried using klayout with the cmd-line arguments? you can run klayout without loading the frontend with klayout -zz -r <script-name>? If you want to have klayout completely without qt, you can compile it without qt. I.e. with sh…
  • By shared folder, I assume you mean a network drive? Yes that works, but I found it cumbersome and version control is not nicely possible. But it is possible, then you need urls like file:///
  • Hi, My guess is this part is the problem https://IP address. Unless you have an internal certificate installed on all machines to recognize this as a valid certificate. If you have an internal certificate: I don´t think KLayout can do any authent…
  • @Rakesh Did you read the error message? Where is KLayout supposed to store the file? The notation you used means (in unix and I think even POSIX) use the current folder, which under windows would (most likely) be C:\Program Files\KLayout\t.gds if e…
  • I would suggest taking a look at the debian wiki: https://wiki.debian.org/Mesa and https://wiki.debian.org/GraphicsCard#Intel And from there the glxinfo for my pc: $ glxinfo | grep OpenGLOpenGL vendor string: NVIDIA CorporationOpenGL renderer stri…
  • No worries ^^. I also think overlapping is not clearly defined in daily speech, so you may very well be correct. Regions were confusing when I started with KLayout, so I wanted to point out that there are fancy options in the regions included that m…
  • Yes and no. Multiprocessing in python came from the neverending story about the Global Interpreter Lock (GIL). Since python cannot do true multi-threading (since only every one thread can be active due to the lock). Warning the next part is my unde…
  • If I understand @ahmedo correctly he said not overlapping, so instead of outside = r2 & r1 it should be not_outside = r2.select_not_outside(r1) and then topcell.shapes(output).insert(not_outside) r1 & r2 will cut parts of boxes that are o…
  • Thanks Matthias, That makes sense. I will take a look at doing it with XOR. Is there an option to do the same thing as the GUI XOR in the API, i.e. either the layout directly or for multiple layers? I have to say, I didn't use the drc engine much y…
  • This might be related to your graphics driver. Are you using the open source video driver? I am using the proprietary (I know, I know, I hate it to) Nvidea driver because some things just don't work on nouveau. For AMD there are open source drivers …
  • Don't do multiprocessing in KLayout ;). I fought through this until I realized Qt is safeguarding against it and I don't think there is an easy way out. Simply put Qt won't let you just spawn chilprocesses this way. Reason is simple: multiprocessing…
  • The fill_cell_index is the cell.cell_index() where cell is the pya.Cell object you want to use for filling. And of course it is possible to instantiate other cells within a PCell, where would the fun be without that possibility ;) (you can even inst…
  • Hey Thomas, It should work perfectly fine on Debian 10 (I did qt5 compile on Debian 10 before, also in a VM). I think the main problem was trying to force it to use qmake for qt5 propely (I printed qmake version to debug this in build.sh). So make s…
  • Hi Thomas, I have KLayout compiled from master-branch on debian 11 and I see the 2.5D viewer :wink: . I am also not entirely sure which libraries are necessary for it, but my suspects are libqt5opengl5{,-dev} qml-module-qtgraphicaleffects. Most lik…
  • Hi @Matthias, How can I ensure that the cell is the same? That is essentially what I want to ensure with my black box extractor, as in ensure that geometries in the cell and the reference cell are the same (and of course not overlayed with other ge…
  • Hi @Ege_Bey I quickly checked on my end whether I can reproduce the error. I cannot. For reference I used the following code import pyalayout = pya.CellView.active().layout()cell = layout.top_cell()layout_dbu = 10000layout.dbu=1/layout_dbulayer = l…
  • Hi @tagger5896 , As I mentioned before, KLayout doesn't use the exact same stuff as pyqt. It is more close to the C++ Qt. Therefore you have to change some stuff in your code. You can get a running example as follows. The GroupBox is quite differen…