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

Method populateFile

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

Source from the content-addressed store, hash-verified

3467 self._reopen(mode="a")
3468
3469 def populateFile(self):
3470 group = self.rootgroup
3471 filters = tb.Filters(complevel=self.compress, complib=self.complib)
3472 vlarray = self.h5file.create_vlarray(
3473 group,
3474 "vlarray",
3475 tb.Int32Atom(),
3476 "ragged array if ints",
3477 filters=filters,
3478 expectedrows=1000,
3479 )
3480
3481 # Fill it with 100 rows with variable length
3482 for i in range(self.nrows):
3483 vlarray.append(list(range(i)))
3484
3485 def test01_start(self):
3486 """Checking updates that modifies a complete row"""

Callers 1

setUpMethod · 0.95

Calls 2

create_vlarrayMethod · 0.80
appendMethod · 0.45

Tested by

no test coverage detected