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

Method populateFile

tables/tests/test_vlarray.py:3118–3132  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

3116 self._reopen()
3117
3118 def populateFile(self):
3119 group = self.rootgroup
3120 filters = tb.Filters(complevel=self.compress, complib=self.complib)
3121 vlarray = self.h5file.create_vlarray(
3122 group,
3123 "vlarray",
3124 tb.Int32Atom(),
3125 "ragged array if ints",
3126 filters=filters,
3127 expectedrows=1000,
3128 )
3129
3130 # Fill it with 100 rows with variable length
3131 for i in range(self.nrows):
3132 vlarray.append(list(range(i)))
3133
3134 def test01_start(self):
3135 """Checking reads with only a start value"""

Callers 1

setUpMethod · 0.95

Calls 2

create_vlarrayMethod · 0.80
appendMethod · 0.45

Tested by

no test coverage detected