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

Method setUp

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

Source from the content-addressed store, hash-verified

1855 icol = tb.IntCol(pos=2)
1856
1857 def setUp(self):
1858 super().setUp()
1859 table = self.h5file.create_table("/", "table", self.MyDescription)
1860 row = table.row
1861 nrows = self.nrows
1862 for i in range(nrows):
1863 row["rcol"] = i
1864 row["icol"] = nrows - i
1865 row.append()
1866 table.flush()
1867 self.table = table
1868 self.icol = self.table.cols.icol
1869 # A full index with maximum optlevel should always be completely sorted
1870 self.icol.create_csindex(_blocksizes=small_blocksizes)
1871
1872 def test00_isCompletelySortedIndex(self):
1873 """Testing the Column.is_csi property."""

Callers

nothing calls this directly

Calls 5

create_csindexMethod · 0.80
setUpMethod · 0.45
create_tableMethod · 0.45
appendMethod · 0.45
flushMethod · 0.45

Tested by

no test coverage detected