Cont.
I have slightly improved Type-B to Type-B2.
Now the results are exported to an Excel file, as shown below.
(Image)
To use F2631B2.py, you need to python3 -m pip install pandas openpyxl.
Kazzz-S
P.S.
In a Windows environment, I recommend …
Cont.
I haven't tried your original batch file, but I often ask ChatGPT for help when encountering problems.
The following is for your reference.
Kazzz-S
Chat with ChatGPT o1-preview:
Question
A batch file for Windows. Correct errors if any.@FO…
Hi jiunnweiyeh,
I'm not very much sure if my idea satisfies your requirements.
However, my idea is to provide your photo engineers with a simple GUI tool using KLayout Python Module (https://www.klayout.org/klayout-pypi/).
Assumptions and prerequi…
I played with ChatGPT-4o.
from klayout import layinputgds = "ringo.gds"#inputlyp = "ringo.lyp"inputlyp = "invKazzzS.lyp"outputpng = "f2625-ringo.png"layoutview = lay.LayoutView()cvIdx = layoutview.loa…
Cont.
Assuming that my above understanding is OK, I wrote code3.py for this problem.
Some changes from your code include:
* I use the pandas module instead of csv.
* I take the three file names from the command line; not from environment variable…
(Image)
A code block should have been looked like this.
(Image)
Please attach the tidy code.
BTW, can you provide a dummy data set for "INPUT_GDS1", "INPUT_GDS2", and "ET_CSV"?
If my understanding is correct, you
…
Hi Kumaran,
First, please
make sure to surround your code block with triple-back quotes (```) like this for readability.
I modified your original code in two ways:
* code1.py --> to run the klayout main GUI executable in batch mode (as you …
Hello @DavidRLindley and @EugeneZelenko,
Thanks for your inspiring post. And the comments regarding LayoutView.each_layer.
Since it looked helpful if I had it, I implemented the feature in a simple command line tool.
I hope my understanding was OK.…
Hi,
I have confirmed that https://github.com/KLayout/klayout/issues/1874 has already fixed this problem.
The forthcoming maintenance release (0.29.8) will incorporate the modifications.
Hello,
I could reproduce the problem on Linux.
KLayout: 0.29.7 (r2d4f5d822)OS: Linux Mint 20.3g++: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0Qt: 5.15.7 (source build)Ruby: 3.1.3p185 (source build)Python: 3.12.6+ (heads/3.12:c6f3f83d888) (source build)
…
Hello folks,
I have a question (suggestion) related to these posts.
My Environment
OS: Linux Mint 20.3Python: 3.12.6+ (built from the source with "--enable-shared")KLayout: 0.29.7 (built from the source)
I invoke the klayout executable…
With two instances of cell A
(Image)
### Cell <A> in <F2592-2A.gds> contains <16> rectangles with L/D=5/0 ###### In Relative Coordinates ### (0,0;108,108) (200,0;308,108) (400,0;508,108) (600,0;708,108) (800,0;908,108) (10…
Hi,
About this?
Test Data
(Image)
(Image)
Code and Results
import klayout.db as kdbdef Find_BondingPad_Positions( indesign: str, layer: int, datatype: int ): #----------------------------------------------------------- # [1] Open the input …
Hi,
I think you have almost done it. :smile:
I have modified your code, as shown below.
import klayout.db as kdbdef list_all_cell_instances(layout, cell_name): # [1] Confirm the presence of "cell_name" target_cell = layout.cell(ce…
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…