gdsfactory / kfactory

gdsfactory with a klayout backend
https://gdsfactory.github.io/kfactory/
MIT License
28 stars 10 forks source link

default max name length to 99 characters #320

Closed joamatab closed 1 month ago

joamatab commented 1 month ago

how can we limit to 99 characters and add examples on how to use 32 as well?

the names are so long that we can't write the files to disk. See

@sebastian-goeldi

sebastian-goeldi commented 1 month ago

With black magic


save_opts = kf.default_save_options()
save_opts.gds2_max_cellname_length=99

Not sure that will limit it to truly 99 or whether it is 99 + ${n same name)

I usually limited it to 97