MCPcopy Create free account
hub / github.com/Meshcapade/difflocks / load_chunked_paths

Method load_chunked_paths

data_loader/dataloader.py:112–119  ·  view source on GitHub ↗
(self,chunk=100)

Source from the content-addressed store, hash-verified

110
111 # to save memory and process time, we load the chunked paths of the granularity that we expect to read from later
112 def load_chunked_paths(self,chunk=100):
113 if chunk==100:
114 self.chunked_100_strands_files = [os.path.join(self.path_chunk_100, f) for f in listdir(self.path_chunk_100)]
115 elif chunk==1000:
116 self.chunked_1000_strands_files = [os.path.join(self.path_chunk_1000, f) for f in listdir(self.path_chunk_1000)]
117 else:
118 print('please check chunk value')
119 exit()
120
121
122

Callers 1

__init__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected