lukasc

About

Username
lukasc
Joined
Visits
6
Last Active
Roles
Member

Comments

  • Hi Matthias, I modified your code for a Basic.CIRCLE, and found un-expected behaviour. After running, the cell shows up as "Basic.CIRCLE(l=1/0,r=0,n=64)" and I don't see the layout: (Image) Code: import pyapya.MainWindow.instance().c…
  • Bishal, Here are some notes on how to import your components into SiEPIC-Tools. Again, I suggest starting with an existing PDK (e.g., EBeam or GSiP), and creating new component following the convention described here:
  • Hi Bishal, I'll write up some documentation how to do this. The easiest would be to edit the existing library and put your own polygons in the cells. On the wiki there is a slightly out of date description of the requirements for pins so that snap…
  • Hi Bishal, We implemented this as a Package for KLayout. In KLayout 0.25, Tools | Manage Package, and find SiEPIC-Tools https://github.com/lukasc-ubc/SiEPIC-Tools It comes with a PDK, called GSiP, and includes waveguides which snap to components.
  • Here is an example where a png icon is added to the tool bar: https://github.com/lukasc-ubc/SiEPIC-Tools/blob/master/klayout_dot_config/python/SiEPIC/setup.py
  • Hi ejprinz, I agree that using a Windows Python distribution like Anaconda would be a good idea. I am not a Windows user however, so do not wish to take on the task of recompiling KLayout on Windows... My interest in Windows KLayout + Python is t…
  • Hi Bishal, Since you are working on photonics, I refer you to our photonics-specific add-ons for KLayout, SiEPIC-EBeam-PDK and SiEPIC-Tools. It is available in Tools | Package Manager, then find these packages. You may also be interested in a pho…
  • The above forum post is concerning doing it via script. The easiest way is through the GUI: Edit | Mode | Instance (or push Instance in the toolbar) choose the Library = Basic choose the Cell = TEXT click on PCell, then enter your desired Text…
  • Thank you. This works well for loading the layer table from file.
  • Hi Matthias, We have successfully added numpy for KLayout-Windows to SiEPIC-Tools (hosted in KLayout Package Manager). It's a never-ending battle though with Windows and the version of Python you chose to compile with as it doesn't come with pip. …
  • Hi Matthias, So I tried your procedure. Downloaded MSYS2 from the web page (msys2-x86_64-20161025.exe) - you mention you can't use the latest version -- is this the wrong one to use? I found older ones here: http://repo.msys2.org/distrib/x86_64/ …
  • Wow, that looks very complicated. I sure like the "pip install numpy" method on Linux and OSX. Seems like there should be an easier way to solve this: a) get users to install a Python of their choice (such as Anaconda), and have KLayout …
  • Thank you. I am indeed trying to size the entire layout (but selection is a good starting point). Is Region what the menu item is using, i.e., will the performance be the same? thanks
  • Thanks Matthias. I agree with your concerns and the need for a true open source initiative. I think what you are doing is outstanding. It may very well be considered as a starting point for standard, though the challenge is that all the companies…
  • Hi Matthias, I am writing a script to do some sizing and boolean operations on shapes. It works, but the performance is such that I won't be able to use it on anything more than a test structure. Yet when I access the menu Edit | Selection | Size…
  • Hi Matthias, In the latest KLayout 0.25, is there any functionality that could enable callbacks, as per the original question? Namely, when I move a fixed cell instance, or pcell instance, I would like it to trigger the execution of some code.. T…
  • I implemented an XML to dict parser, followed by scanning through and finding all the layers to create a layer dict...
  • Hi Matthias, We are finally getting some time to work on this, on 0.25: I am running into the following challenge: * Multiple technologies * We want to use generic names for layers in the PCells, rather than hard-coding "1/0". Example, …
  • Hi Daanyaal, On CentOS-7 the following worked for me: * install Python pip * python -m pip install --user numpy This installed numpy-1.13.3. Then in KLayout, no problem running "import numpy" and numpy commands.
  • Hi Matthias, This makes sense. I don't have 0.25 so can't test this yet. One question is what types of parameters can be stored in the technology. Hopefully it will be generic enough (i.e., not just the layer table) that I can put any number of v…
  • Is there any way to check if a layout hasn't been saved? i.e., when you exit KLayout, it knows if it has been modified or not. I couldn't find such a flag. The closest I could find was checking the undo transactions. If there are none, I assume …
    in File | Save Comment by lukasc March 2017
  • Hi Matthias, Regarding listed libraries: only the libraries associated with the selected technology should be listed - for example when adding a cell. Isn't that true? That part isn't working for me, which is essentially the question. I have pre…
  • Thanks Matthias. One thing missing is that if the user presses escape, this function doesn't return if the file was saved. But that can be checked by: layout_filename = pya.Application.instance().main_window().current_view().active_cellview().fil…
    in File | Save Comment by lukasc March 2017
  • Hi Matthias, Similar question for you -- is there a way to trigger on the user changing the technology? i.e,. calling a Python script to unregister the other PCell libraries, and register the PCell library for the chosen technology? With more tha…
  • Thanks Joel. So your script loads the PCell libraries only, or GDS libraries? It seems to load all of the ones listed in the CSV, rather than selectively? How do you trigger an event based on selecting the technology? I would imagine unloading…
  • Hi Matthias, Me and a few others I've spoken with are feeling challenged by the lack of ability to easily distribute both library and technology. We would like to use KLayout for different manufacturing processes, where each one would have it's ow…
  • Hi Matthias, I am wondering if you have been working on the API for the net tracer feature? I would like to access this in Python. I have developed something similar to photonics (optical waveguides), namely netlist extraction, but there we are o…
  • Thank you Matthias, especially for "Bugfix: Copying Hierarchy treets containing PCell's made the PCell's being turned into static cells." It works well as expected!
  • Thanks Mattias, I see that I can do a copy & paste one by one, as long as I select the individual PCell instance in the layout. But if the PCell resides in a hierarchy, and I try to copy that top cell in the layout, it pops up the dialog of Sh…