MCPcopy Index your code
hub / github.com/numpy/numpy / writer

Method writer

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

Source from the content-addressed store, hash-verified

283 # and savez functions in multithreaded environment
284
285 def writer(error_list):
286 with temppath(suffix='.npz') as tmp:
287 arr = np.random.randn(500, 500)
288 try:
289 np.savez(tmp, arr=arr)
290 except OSError as err:
291 error_list.append(err)
292
293 errors = []
294 threads = [threading.Thread(target=writer, args=(errors,))

Callers

nothing calls this directly

Calls 1

temppathFunction · 0.90

Tested by

no test coverage detected