MCPcopy
hub / github.com/numpy/numpy / check_roundtrips

Method check_roundtrips

numpy/lib/tests/test_io.py:134–142  ·  view source on GitHub ↗
(self, a)

Source from the content-addressed store, hash-verified

132 return arr, arr_reloaded
133
134 def check_roundtrips(self, a):
135 self.roundtrip(a)
136 self.roundtrip(a, file_on_disk=True)
137 self.roundtrip(np.asfortranarray(a))
138 self.roundtrip(np.asfortranarray(a), file_on_disk=True)
139 if a.shape[0] > 1:
140 # neither C nor Fortran contiguous for 2D arrays or more
141 self.roundtrip(np.asfortranarray(a)[1:])
142 self.roundtrip(np.asfortranarray(a)[1:], file_on_disk=True)
143
144 def test_array(self):
145 a = np.array([], float)

Callers 4

test_arrayMethod · 0.95
test_array_objectMethod · 0.95
test_recordMethod · 0.95
test_format_2_0Method · 0.95

Calls 1

roundtripMethod · 0.95

Tested by

no test coverage detected