Pavel
Pavel

Reputation: 151

Appending time series to existing HDF5-file with tstables

Running TsTables example once: everything works. Running second time:

tables.exceptions.NodeError: group / already has a child node named BPI

Makes sense, can not do

ts = f.create_ts('/','BPI',BpiValues)

since the corresponding node/leaf already exists in the HDF5 tree.

Question: how should TsTable class be instantiated from a group that already exists? Doing .getNode('/', 'BPI') on file handler returns a group, not a table.

Upvotes: 1

Views: 763

Answers (1)

Pavel
Pavel

Reputation: 151

Found the function for that in group.py:

tstables.get_timeseries(f.root.BPI)

where f is the file handler to HDF5 file produced in that BPI example.

Upvotes: 1

Related Questions