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

Method setUp

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

Source from the content-addressed store, hash-verified

2666 ]
2667
2668 def setUp(self):
2669 super().setUp()
2670
2671 class Descr(tb.IsDescription):
2672 when = self.col_typ(pos=1)
2673 value = tb.Float32Col(pos=2)
2674
2675 self.table = self.h5file.create_table("/", "test", Descr)
2676
2677 self.t = 1321031471.0 # 11/11/11 11:11:11
2678 data = [(self.t + i, item) for i, item in enumerate(self.values)]
2679 self.table.append(data)
2680 self.h5file.flush()
2681
2682 def test_timecol_issue(self):
2683 tbl = self.table

Callers

nothing calls this directly

Calls 4

setUpMethod · 0.45
create_tableMethod · 0.45
appendMethod · 0.45
flushMethod · 0.45

Tested by

no test coverage detected