Use a dictionary to define the table instead of subclassing IsDescription
.
import tables
import numpy as np
param = 10
with tables.open_file('save.hdf','w') as saveFile:
tabledef = {'var1':tables.Float64Col(shape=(param))}
table = saveFile.create_table(saveFile.root,'test',tabledef)
tablerow = table.row
tablerow['var1'] = np.array([1,2,3,4,5,6,7,8,9,0])
tablerow.append()
table.flush()
with tables.open_file('save.hdf','r') as sv:
sv.root.test.read()