Hi @SRF,
I recently upgraded my development environment to Sequoia 15.5 + Xcode 16.4 + VMware Fusion 13.6.3. See this ticket.
I also noticed that the view count of this post increases gradually.
To reconfirm again that the source code build in Mon…
Hi @bertwa,
Just for your info.
Playing with ChatGPT
<ChatGPT 4o Prompt>Using the KLayout Python module installed by 'python3 -m pip install klayout', I want to:1. Read a GDS2/OASIS file2. Iterate over all layers and polygons (including box…
Hi @Long,
As you mentioned, the steps explained in Homebrew-User-ReadMe First.txt (HW-*.dmg) and the ones regarding the virtual environment setup (described above) are effectively equivalent.
Academic people originally conceived the idea for HW (a…
Hi @Long,
I tried to use a virtual environment as follows.
This also works fine.
Setup the virtual environment
Sequoia1{kazzz-s} ~ (1)% which python3/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/bin/python3…
Hi @Long,
The actual cause may be different from what I imagined initially.
Please let me know the results by comparing them with my environment.
Cont.
Where does @rpath point?
Sequoia1{kazzz-s} MacOS (1)% export DYLD_PRINT_RPATHS=1Sequoia1{kazz…
Hi @Long,
Since you can successfully start the application, you installed the Apple Command Line Tools correctly.
However, some optional Python packages, including numpy, are not correctly installed.
I guess you have installed another Python3 throu…
Hi @SRF,
To reconfirm that the source code build in Monterey is still possible, I set up my Monterey development environment with Xcode 14.2 and the latest MacPorts packages.
Then, I attempted the two builds for KLayout 0.29.11:
* 6A. Standard bui…
Hi @SRF,
I was able to reproduce the issue with Monterey 12.7.6. It's a bad news.
The reason is simple: the required libraries are not up-to-date in Monterey.
(Image)
It will work if you don't mind using an older version of KLayout 0.29.6.
Spec…
Hi @Nanobot,
The following are related to your interests.
* https://www.klayout.de/lyp_format.html
* https://www.klayout.de/doc-qt5/code/class_Dispatcher.html#method13
Kazzz-S
from klayout import laydef print_formatted_table(strings, columns): …
Hi @Nanobot,
I searched the klayout config file for dither as follows.
% grep dither klayoutrc <l2ndb-marker-dither-pattern>1</l2ndb-marker-dither-pattern> <nt-marker-dither-pattern>-1</nt-marker-dither-pattern> <rdb-mar…
The constructors from Polygon to DPolygon and from DPolygon to Polygon are provided, but not between an array of them, which is the root cause.
Therefore, the two cases below work if you want to keep pya.DPolygon in class MyPolygon.
I think f2650C.p…
Here is a PyPI version...
#--------------------------------------------------------------------------------------# Assumptions:# 1) You have the Python3 environment.# 2) You have installed the KLayout Python Module.# (https://www.klayo…
* When I created the empty layout, I set dbu=0.001 [um].
This is equivalent to using the class Layout's setter:
(Image)
* I first defined the four integer coordinates Point in the macro.
(Image)
* Then, I created two DPath (not Path) instance…
I think it's not a bug.
Maybe you saved it to a GDS file.
The round end of a Path can be saved and drawn if and only if:
(1) the output format is GDS
(2) (if not zero) bgn_ext = end_ext = width/2
See the experiments below.
#------------------…
Cont.
The [-b|--noborder]: no image border option was inappropriately named and had a bug.
Apologies for the inconvenience. The correct version is now:
Modified
-------------------------------------------------------------------------------------…
Cont.
As I observed above, your bitmap resolution (DPI) is too small.
So, I remade your Python script (see the attached ZIP file).
The wrapper batch (RunKlayoutDxf2Png.bat) script is no longer required.
I tested it on Linux Mint 20.3, Windows 11, a…
Cont.
With more observations, I understood as follows:
1. the output image size is 1080 x 1080 [pix]
2. the top cell's bounding box is 2041.2 [um] square
3. if the above bounding box is split into 5x5 regions, each covers 408.24 [um] square region
…
Hi @Flyingmyd,
* Do you pass the DXF file as input_file to def convert_gds_to_png(input_file, output_file, dbox_xmin, dbox_ymin, dbox_xmax, dbox_ymax, width, height): ? Or externally converted GDS2 file?
* conversion_log.txt seems to have the actua…
Thank you for sharing the DXF file.
Before going into the details of the code, I checked the DXF file itself.
See the six images below.
(Image)
(Image)
(Image)
Observations and Questions:
1. Some Polylines are not converted to Polygons but t…
Hi,
As @EugeneZelenko explained above, the Qt framework (subset) is a part of the KLayout main GUI program.
(Image)
If you want to use Qt with the KLayout standalone Python module, PyQt5 is a choice.
You can find a simple example in this post.
Can you attach the abc.dxf file by zipping it to abc.dxf.zip?
Also, please provide more details on using the save_image_with_options() function, including the clip window geometry.
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…