gdsfactory / kfactory

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

Add `KCLayout.to_dbu_obj(um_based_shape)` and `KCLayout.to_um_obj(dbu_based_obj)` #377

Closed sebastian-goeldi closed 3 weeks ago

sebastian-goeldi commented 3 weeks ago

@cached_property
to_dbu():
    return kdb.CplxTrans(self.dbu)

@cached_property
to_um():
    return kdb.CplxTrans(self.dbu).inverted()