MCPcopy Create free account
hub / github.com/PyTables/PyTables / create_test_file

Function create_test_file

examples/simple_threading.py:18–22  ·  view source on GitHub ↗
(filename)

Source from the content-addressed store, hash-verified

16
17
18def create_test_file(filename):
19 data = np.random.rand(SIZE, SIZE)
20
21 with tb.open_file(filename, "w") as h5file:
22 h5file.create_array("/", "array", title="Test Array", obj=data)
23
24
25def chunk_generator(data_size, nchunks):

Callers 1

mainFunction · 0.70

Calls 1

create_arrayMethod · 0.45

Tested by

no test coverage detected