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

Function divide_n

feature_extraction/src/util.py:58–62  ·  view source on GitHub ↗
(list_in, n)

Source from the content-addressed store, hash-verified

56 yield list[i:i + n]
57
58def divide_n(list_in, n):
59 list_out = [ [] for i in range(n)]
60 for i,e in enumerate(list_in):
61 list_out[i%n].append(e)
62 return list_out
63
64def is_gzip_file(file_path):
65 with open(file_path, 'rb') as file:

Callers 2

process_data.pyFile · 0.90
vis.pyFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected