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

Function roundtrip_randsize

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

Source from the content-addressed store, hash-verified

413
414
415def roundtrip_randsize(arr):
416 f = BytesIO()
417 format.write_array(f, arr)
418 f2 = BytesIOSRandomSize(f.getvalue())
419 arr2 = format.read_array(f2)
420 return arr2
421
422
423def roundtrip_truncated(arr):

Callers 1

test_roundtrip_randsizeFunction · 0.85

Calls 1

BytesIOSRandomSizeClass · 0.85

Tested by

no test coverage detected