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

Method setUp

tables/tests/test_indexes.py:2486–2502  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2484 icol = tb.IntCol(pos=2)
2485
2486 def setUp(self):
2487 super().setUp()
2488
2489 table = self.h5file.create_table("/", "table", self.MyDescription)
2490 row = table.row
2491 nrows = self.nrows
2492 for i in range(nrows):
2493 row["rcol"] = i
2494 row["icol"] = nrows - i
2495 row.append()
2496 table.flush()
2497 self.table = table
2498 self.icol = self.table.cols.icol
2499 # A full index with maximum optlevel should always be completely sorted
2500 self.icol.create_index(
2501 optlevel=self.optlevel, kind="full", _blocksizes=small_blocksizes
2502 )
2503
2504 def test01_readSorted1(self):
2505 """Testing the Table.read_sorted() method with no arguments."""

Callers

nothing calls this directly

Calls 5

create_indexMethod · 0.80
setUpMethod · 0.45
create_tableMethod · 0.45
appendMethod · 0.45
flushMethod · 0.45

Tested by

no test coverage detected