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

Method setUp

tables/tests/test_tables.py:2840–2846  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2838 common.TempFileMixin, common.PyTablesTestCase
2839):
2840 def setUp(self):
2841 super().setUp()
2842
2843 self.dtype = np.rec.format_parser(["i4"] * 10, [], []).dtype
2844 self.table = self.h5file.create_table("/", "table", self.dtype)
2845 self.shape = (100,)
2846 self.populate_file()
2847
2848 def populate_file(self):
2849 self.array = np.zeros(self.shape, self.dtype)

Callers

nothing calls this directly

Calls 3

populate_fileMethod · 0.95
setUpMethod · 0.45
create_tableMethod · 0.45

Tested by

no test coverage detected