Checking the return of NumPy in read_where method (numeric).
(self)
| 762 | self.assertEqual(len(data), self.nrows) |
| 763 | |
| 764 | def test03b_readWhere(self): |
| 765 | """Checking the return of NumPy in read_where method (numeric).""" |
| 766 | |
| 767 | table = self.h5file.root.table |
| 768 | table.cols.z.create_index() |
| 769 | if self.close: |
| 770 | self._reopen(mode="a") |
| 771 | table = self.h5file.root.table |
| 772 | data = table.read_where("z == 0") |
| 773 | if common.verbose: |
| 774 | print("Type of read:", type(data)) |
| 775 | print("Length of the data read:", len(data)) |
| 776 | |
| 777 | # Check that both NumPy objects are equal |
| 778 | self.assertIsInstance(data, np.ndarray) |
| 779 | |
| 780 | # Check that all columns have been selected |
| 781 | self.assertEqual(len(data), 0) |
| 782 | |
| 783 | def test04a_createTable(self): |
| 784 | """Checking the Table creation from a numpy recarray.""" |
nothing calls this directly
no test coverage detected