MCPcopy Create free account
hub / github.com/IfcOpenShell/IfcOpenShell / oc_len

Function oc_len

src/exterior-shell-extractor/utils.py:48–50  ·  view source on GitHub ↗
(tup)

Source from the content-addressed store, hash-verified

46
47
48def oc_len(tup):
49 # @todo implement in C++
50 return int(type(tup).__name__.split("_")[-1])
51
52
53make_default = lambda pairs: dict((k, [v[1] for v in vs]) for k, vs in itertools.groupby(pairs, key=operator.itemgetter(0)))

Callers 1

to_tupleFunction · 0.85

Calls 2

splitMethod · 0.80
typeFunction · 0.50

Tested by

no test coverage detected