(self)
| 997 | small_blocksizes = (16, 8, 4, 2) |
| 998 | |
| 999 | def setUp(self): |
| 1000 | super().setUp() |
| 1001 | |
| 1002 | # Create an instance of an HDF5 Table |
| 1003 | title = "This is the IndexArray title" |
| 1004 | root = self.h5file.root |
| 1005 | |
| 1006 | # Make the chunkshape smaller or equal than small_blocksizes[-1] |
| 1007 | chunkshape = (2,) |
| 1008 | self.table = self.h5file.create_table( |
| 1009 | root, |
| 1010 | "table", |
| 1011 | TDescr, |
| 1012 | title, |
| 1013 | None, |
| 1014 | self.nrows, |
| 1015 | chunkshape=chunkshape, |
| 1016 | ) |
| 1017 | self.table.autoindex = self.iprops.auto |
| 1018 | for colname in self.colsToIndex: |
| 1019 | self.table.colinstances[colname].create_index( |
| 1020 | _blocksizes=self.small_blocksizes |
| 1021 | ) |
| 1022 | for i in range(self.nrows): |
| 1023 | # Fill rows with defaults |
| 1024 | self.table.row.append() |
| 1025 | self.table.flush() |
| 1026 | if self.reopen: |
| 1027 | self._reopen(mode="a") |
| 1028 | self.table = self.h5file.root.table |
| 1029 | |
| 1030 | def test01_attrs(self): |
| 1031 | """Checking indexing attributes (part1)""" |
nothing calls this directly
no test coverage detected