gdsfactory / kfactory

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

Implement __contains__ in KCellSettings #391

Closed tvt173 closed 3 weeks ago

tvt173 commented 3 weeks ago

Is your feature request related to a problem? Please describe. This behavior is not so nice... image

Describe the solution you'd like Implement the __contains__ special operator in KCellSettings, so that we can check if a particular setting is present, consistently with how we can in a dictionary.

Describe alternatives you've considered you can use the get() method now and check for a None result, but still, the behavior above is unintuitive and not so nice

@sebastian-goeldi