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

Function roundtrip

numpy/lib/tests/test_format.py:407–412  ·  view source on GitHub ↗
(arr)

Source from the content-addressed store, hash-verified

405
406
407def roundtrip(arr):
408 f = BytesIO()
409 format.write_array(f, arr)
410 f2 = BytesIO(f.getvalue())
411 arr2 = format.read_array(f2, allow_pickle=True)
412 return arr2
413
414
415def roundtrip_randsize(arr):

Callers 3

test_roundtripFunction · 0.85
test_long_strFunction · 0.85
test_descr_to_dtypeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected