tlima

About

Username
tlima
Joined
Visits
15
Last Active
Roles
Member

Comments

  • You could of course overload every cell constructor in db.Layout and call your cell initializer, if that’s a functionality that you want. If there’s a unique use case for these, we can include this functionality in the python package. That’s why rig…
  • This came full-circle. =) I actually submitted a patch that implements __rmul__. It is generally safe, because python checks the __mul__ method of the left operand first. If it returns NotImplemented, then it checks rmul on the right operand. I don…
  • distutils, setuptools and setup.py will only deal with python dependencies. If we need other platform-dependent dependencies, unfortunately we have to code it ourselves. ubuntu has apt-get, fedora-like has yum, mac has brew, but windows it's more co…
  • I've done something like this based on a tip by Matthias. Prototype code is in https://github.com/lightwave-lab/SiEPIC-Tools/blob/lightwave/klayout_dot_config/python/SiEPIC/utils/pcells.py#L274-L320 This code does the following: 1. renames all cell…
  • I was just looking into part of the code for dither pattern. This piece of the source code might help you. Maybe we need a documentation page on the layer properties file? https://github.com/klayoutmatthias/klayout/blob/5efe5d20dd5d55ea423f17137834…
  • Hello dion, It's simply layout.read('filename.gds'). Here is a snipped of python code I used to get the Tiles cell from a second gds file and place them on the TOP cell of the first gds. The load_options might not be necessary, but it might help i…