It looks like you're new here. If you want to get involved, click one of these buttons!
As title, Can I use layout.has_cell?(name) in python? I try it show error message: invalid syntax
No, you can't. This is Ruby syntax. Use "has_cell" without the question mark.
For details see here (search for "predicate getters"): https://www.klayout.de/doc-qt5/programming/python.html
Matthias
Thanks Matt. One more question, Can I use wildcards in has_cell function? Like: layout.has_cell("abc_cell"*)
BG, Man
No, you can't.
Comments
No, you can't. This is Ruby syntax. Use "has_cell" without the question mark.
For details see here (search for "predicate getters"): https://www.klayout.de/doc-qt5/programming/python.html
Matthias
Thanks Matt.
One more question, Can I use wildcards in has_cell function?
Like:
layout.has_cell("abc_cell"*)
BG,
Man
No, you can't.
Matthias