Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/CoolProp/CoolProp
/ to_chunks
Function
to_chunks
dev/generate_headers.py:94–97 ·
view source on GitHub ↗
(l, n)
Source
from the content-addressed store, hash-verified
92
93
def
TO_CPP(root_dir, hashes):
94
def
to_chunks(l, n):
95
if
n < 1:
96
n = 1
97
return
[l[i:i + n]
for
i in range(0, len(l), n)]
98
99
# Normalise path name
100
root_dir = os.path.normpath(root_dir)
Callers
1
TO_CPP
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected