Hi @shawn0778,
This is regarding the first half.
(Quote)
Yes, we can!
I have enhanced gds2png.py:
1. with the [-s|--split <'n,m'>] option, we can split the universe into n columns and m rows.
OR
2. with the [-a|--area <x1,y1,x2,y2>] o…
Let me first answer the second half.
The top cell's bounding box is not a square in both examples.
More precisely, in the first example, the bounding box's W < H; in the second, W > H. Whereas, the PNG image canvas is a square (1000x1000, by d…
(Quote)
I do not know if there is such a reference document.
However, the contents of a layer property file (XML) correspond to the GUI windows like
(Image)
I think the tag names are self-explanatory enough.
(Quote)
Those user preference paramete…
Hello @shawn0778,
(Quote)
OK, thank you for confirmation. I understood.
The updated (2024-09-03A) gds2png.py can take additional valid file name extensions.
In your case, you can invoke like gds2png.py -v .120.gds -v .2.gds -i '*.gds'.
Of course, y…
Cont.
Maybe I could find the reasons.
1. You used gds2png.py with valid extensions (changed the file names or added more valid extensions).
2. You did not use the [-l|--lyp <layer property file>] option as it is optional.
3. The original co…
In the previous example (with No.120.gds), how did you run what command?
Please provide the detailed steps in a code block (triple single quote).
command argument1 argument2 ...
The fishfinder.py script rejects the GDS file because it has two dot…
Hello @shawn0778,
I used the Show As New Top menu for the cells 0_mask_jsgk (top cell), 120, mask_name, and panel_xxx and found that only the top cell 0_mask_jsgk contains some meaningful shapes (23 rows x 24 columns of a polygon with two holes).
(…
KLayout is not fully bi-directional in terms of supported data formats.
The writer supports the formats listed below.
(Image)
The Gerber 274x format is for input (reader) only.
ChatGPT offers some hints, but my experience was only with LinkCAD ma…
Hi,
I would suggest to use an Excel sheet instead of a CSV file because:
1. you can use any equations in it
2. verification is easy
See the attached f2579.py file that uses the KLayout Python Module.
Note that you need to install pandas, numpy, an…
If we add a new shape (triangle) to Layer "2/0" of Cell "F," it propagates across the arrayed Cell Instance.
The operation captured in the animation is called Edit-In-Place.
(Image)
Hi @lmz,
Thanks for your reply.
A newer version is not always better than an old version. See this related discussion.
Sometimes, new bugs are introduced in a new version.
If an older version is stable enough to carry out daily routines, I think us…
In this example,
* Cell "F" has a polygonal shape in Layer "1/0".
* Cell "ArrayF" has a Cell Instance (arrayed by 4x5) of Cell "F" and a path shape in Layer "2/0".
* What we can array is a Cell, no…
Hi,
I do not understand what you mean by "use array to layer 2". What exact command or menu did you use?
You are probably new to this field.
The first step is to understand some basic concepts clearly.
ChatGPT's answer, shown below, will …
Hi @shawn0778,
It's good to hear that my post is useful. :smile:
If you mean the X and Y in the image below as the physical dimensions of a GDS file, they're easy to find.
(Image)
I can modify the code of fishfinder.py as follows.
Then I got:
…
Cont.
6. Sample Implementation
I tried implementing the idea. :smile:
-----------------------------------------------------------------------------------------------------fishfinder.py << To extract the locations of specific cell instances…
Cont.
5. Just an Idea
Looking at these images reminded me of Fish-finding Radar. :smile:
How about the idea of splitting the task into two stages:
[stage_1]. changing the cell hierarchy (like leaf_chip.gds.gz ---> out_KS.gds.gz)
[stage_2]. im…
Cont.
4. Using gds2png.py
I have modified the oas2png-new.py tool attached to Forum-2563 and wrote this tool.
If the -l <LYP file> option is not used, LayoutView.get_pixels_with_options_mono() is used internally, and the output image will be…
Cont.
3. Using Forum2568_KazzzS.py
While running the original script in the IDE, I found some points and modified the script accordingly.
Please note that I have not fully digested your intentions.
However, at least I could avoid the Runtime Erro…
Cont.
2. Using the original bug_repro.py script
> import os> os.chdir("/Users/sekigawa/GitWork/ForumKLayout/Forum/Forum2568/")> os.getcwd()'/Users/sekigawa/GitWork/ForumKLayout/Forum/Forum2568'Running macro /Users/sekigawa/.klay…
Hi jamesryan,
1. Intro.
I'm studying this case out of curiosity.
I could reproduce your problem with KLayout 0.25.9 on Linux Mint 20.3 and macOS Monterey.
If my understanding is correct, you want to:
* Remove all references to a particular cell (…
Hi @Matthias,
The bug was not inside KLayout; I misused an API function.
Incorrect:
: cellview.set_cell(topcellIdx) layoutview.max_hier_levels = layoutview.max_hier_levels + 1 <=== # layoutview.max_hier_levels is not automatically set by …
Cont.
I found and fixed a fatal bug (cell hierarchy level is not checked), then re-attached the ZIP file (2024-08-07).
Sorry about the inconvenience once again.
Some queries:
* Version 0.25.3 is over six years old. Is there any reason not to update to the latest version?
* Which binary distribution did you install, and on which OS?
* In what format did you save your layout design? GDS2, OASIS, or some …