Closed joamatab closed 2 months ago
How would you even do that?
How about doing that gdsfactory side, by subclassing KCell and Instance?
yes, but you will have the problem of needing to overload create_instance etc.
Maybe we can do it by using
DKCLayout
and DKCell
/DInstance
but it's a rather large task and not everything is straightforward
I see, okay, maybe then we need to make a big tutorial and explan that people need to use Instance.d.xmin instead
I think it's a reasonable request, but whether we do it in kfactory or gdsfactory is about the same amount of work with gdsfactory having to do even more wrapping because you want to inherit
yes, im concerned about lots of people Pcells will break if we don't keep backwards compatibility
Can we just inherit from UMKCell?
Yes you can if you are willing to call .parent
anytime you call anything kfactory which requires a KCell
How could we support xmin, ymin, in um both for KCells and Instances?