It looks like you're new here. If you want to get involved, click one of these buttons!
Hello There,
I'm trying to generate a single column rectangle array with random spacing and height. There are three cases. In the first, the rectangle height and width are constant, and the spacing between each rectangle must be altered based on the random spacing specified in a csv file. In the second scenario, the rectangle height varies depending on the width specified in the csv file. In the third scenario, the height and spacing change according to the columns in the csv file. In all the cases, the width of the rectangle is kept fixed. Please assist me with importing the csv file and creating the necessary design.
This is an interesting design problem, but I'm having trouble finding a solution.
Thanks in advance
Krish
Comments
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
, andtheir dependencies
.Tested on Linux
Update:2024-09-03
Hi @sekigawa
Thank you for your time, I downloaded the zip file, which was quite useful. Now I understand how to write Python scripts to generate the desired layout.
Thanks again
Krish