MCPcopy Create free account
hub / github.com/PyTables/PyTables / test_read_entire_array

Method test_read_entire_array

tables/tests/test_carray.py:1330–1334  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1328 return array, disk_array
1329
1330 def test_read_entire_array(self):
1331 array, disk_array = self.create_array()
1332 out_buffer = np.empty((self.size,), "i8")
1333 disk_array.read(out=out_buffer)
1334 np.testing.assert_equal(out_buffer, array)
1335
1336 def test_read_non_contiguous_buffer(self):
1337 array, disk_array = self.create_array()

Callers

nothing calls this directly

Calls 2

create_arrayMethod · 0.95
readMethod · 0.45

Tested by

no test coverage detected