Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
48
def
oc_len(tup):
49
# @todo implement in C++
50
return
int(type(tup).__name__.split(
"_"
)[-1])
51
52
53
make_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_tuple
Function · 0.85
Calls
2
split
Method · 0.80
type
Function · 0.50
Tested by
no test coverage detected