MCPcopy Create free account
hub / github.com/KLayout/klayout / find_layer

Function find_layer

testdata/python/dbPCells.py:209–214  ·  view source on GitHub ↗
(ly, lp)

Source from the content-addressed store, hash-verified

207pya.LayerInfo.__repr__ = inspect_LayerInfo
208
209def find_layer(ly, lp):
210
211 for li in ly.layer_indices():
212 if str(ly.get_info(li)) == lp:
213 return li
214 return None
215
216
217def nh(h):

Callers 4

test_1Method · 0.70
test_1aMethod · 0.70
test_2Method · 0.70
test_9Method · 0.70

Calls 1

strFunction · 0.85

Tested by 4

test_1Method · 0.56
test_1aMethod · 0.56
test_2Method · 0.56
test_9Method · 0.56