MCPcopy Create free account
hub / github.com/circuitnet/CircuitNet / divide_list

Function divide_list

feature_extraction/src/util.py:54–56  ·  view source on GitHub ↗
(list, n)

Source from the content-addressed store, hash-verified

52 np.savez_compressed(save_path, data)
53
54def divide_list(list, n):
55 for i in range(0, len(list), n):
56 yield list[i:i + n]
57
58def divide_n(list_in, n):
59 list_out = [ [] for i in range(n)]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected