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

Method populateFile

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

Source from the content-addressed store, hash-verified

2670 self._reopen()
2671
2672 def populateFile(self):
2673 group = self.rootgroup
2674 filters = tb.Filters(complevel=self.compress, complib=self.complib)
2675 vlarray = self.h5file.create_vlarray(
2676 group,
2677 "vlarray",
2678 tb.Int32Atom(),
2679 "ragged array if ints",
2680 filters=filters,
2681 expectedrows=1000,
2682 )
2683
2684 # Fill it with 100 rows with variable length
2685 for i in range(self.nrows):
2686 vlarray.append(list(range(i)))
2687
2688 def test01_start(self):
2689 """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