MCPcopy Create free account
hub / github.com/numpy/numpy / writer

Method writer

numpy/lib/tests/test_io.py:262–268  ·  view source on GitHub ↗
(error_list)

Source from the content-addressed store, hash-verified

260 # and savez functions in multithreaded environment
261
262 def writer(error_list):
263 with temppath(suffix='.npz') as tmp:
264 arr = np.random.randn(500, 500)
265 try:
266 np.savez(tmp, arr=arr)
267 except OSError as err:
268 error_list.append(err)
269
270 errors = []
271 threads = [threading.Thread(target=writer, args=(errors,))

Callers

nothing calls this directly

Calls 1

temppathFunction · 0.90

Tested by

no test coverage detected