-
Hi, |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
Hi, Have you removed KQCircuits from KLayout's package manager before cloning from GitHub? It's possible that two parallel KQC installations interfere. If these don't work, when you reply, could you also tell us what is the os in your system and the version of the KLayout? Also if you could specify where have you located |
Beta Was this translation helpful? Give feedback.
-
After investigating further this does seem to be a python file that we have removed at some point from the repository, but perhaps the SALT package still has it since we haven't updated the SALT package in a while. If you could send the contents of the |
Beta Was this translation helpful? Give feedback.
-
Hi,
This file is to be run in KLayout Macro Developmentimport pya (layout, layout_view, cell_view) = macroprep.prep_empty_layout() copy your resonator parameters hereres_lengths = [4511.28696175443, 4713.33669564261, 4932.686872240668, 5174.906049896605, 5439.156417772476, 5734.9182128497205] create chip and insert it to the top_cellchip_size = 10000 I can see most of the libraries (more from git clone than salt, some are missing in salt). I can place elements in klayout using both methods, but the macros dont run because of the missing package in the second method. The first method also has some errors but maybe we can take it up on another thread. |
Beta Was this translation helpful? Give feedback.
Hi, thanks for the details!
I think the following code accomplishes the same thing you intend to do:
Then you can access
layout_view
,cell_view
,layout
,top_cell
andactive_cell
usingview.layout_view
,view.cell_view
etc. You can read more on KLayoutView API and a tutorial on writing macrosFor most purposes I would recommend the second installation configuration: No SALT package, git clone KQCircuits and run
setup_within_klayout.py
. SALT package is offered as a way to quickly try out KQCircuits or to demo it in-location.