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

Method check_roundtrips

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

Source from the content-addressed store, hash-verified

123 os.remove(target_file.name)
124
125 def check_roundtrips(self, a):
126 self.roundtrip(a)
127 self.roundtrip(a, file_on_disk=True)
128 self.roundtrip(np.asfortranarray(a))
129 self.roundtrip(np.asfortranarray(a), file_on_disk=True)
130 if a.shape[0] > 1:
131 # neither C nor Fortran contiguous for 2D arrays or more
132 self.roundtrip(np.asfortranarray(a)[1:])
133 self.roundtrip(np.asfortranarray(a)[1:], file_on_disk=True)
134
135 def test_array(self):
136 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