-
-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
invalid record type on global level #197
Comments
Hi @Labjoker, sorry for taking long to respond, I've been quite busy lately and don't have as much time to focus on gdstk right now. I have to run tests over here to see what I can find. If you can provide an easy way to reproduce the problem, it would be of great help. |
Hi, @heitzmann, thank you for taking the time to reply to me. |
Sorry for the long delay @Labjoker, but I've been quite busy lately. I've tried to reproduce your error with the following test, but it seems to work fine for me: import gdstk
lib = gdstk.Library()
cell = lib.new_cell("MAIN")
n = 6667
for i in range(n):
for j in range(n):
poly = gdstk.rectangle((0, 0), (0.4, 0.1))
poly.rotate(0.1 * (i ** (3 / 7) + j ** (2 / 3)))
poly.translate(i * 0.6, j * 0.6)
cell.add(poly)
lib.write_oas("large.oas") It takes a while to run (97 s) and the resulting file is large (449 MB), as expected, but I opened it in KLayout without issues. Could you share your code? |
hello,
When I use the library.write_oas() function to write a layout with 66667 multiplied by 500 graphics into an OAS file, there are no errors. However, when I write a layout with 66667 multiplied by 66667 graphic units and open the OAS file using Klayout software, it shows an error message "invalid record type on global level(position=8539813,cell=)". Moreover, the file size is only 8331KB, even smaller than the first time. May I ask what could be the possible cause of this error?
Thanks!
The text was updated successfully, but these errors were encountered: