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

Function nh

testdata/python/dbPCells.py:217–224  ·  view source on GitHub ↗

Returns a normalized hash representation

(h)

Source from the content-addressed store, hash-verified

215
216
217def nh(h):
218 """
219 Returns a normalized hash representation
220 """
221 v = []
222 for k in sorted(h):
223 v.append(repr(k) + ": " + repr(h[k]))
224 return "{" + (", ".join(v)) + "}"
225
226class DBPCellTests(unittest.TestCase):
227

Callers 2

test_1Method · 0.70
test_1aMethod · 0.70

Calls 2

appendMethod · 0.45
joinMethod · 0.45

Tested by 2

test_1Method · 0.56
test_1aMethod · 0.56