Currently, DDH5Writer.add_data selects the AppendMode according to DDH5Writer.inserted_rows, which is not incremented correctly.
Because of this, DDH5Writer.add_data always selects AppendMode.none and unnecessarily re-creates the ddh5 file every time a row of data is added.
This bugfix removes the part where DDH5Writer.add_data incorrectly sets the AppendMode and lets datadict_to_hdf5 decide whether to re-create or append to the ddh5 file.
I have also removed DDH5Writer.inserted_rows because it is not used anywhere else.
Currently,
DDH5Writer.add_data
selects theAppendMode
according toDDH5Writer.inserted_rows
, which is not incremented correctly. Because of this,DDH5Writer.add_data
always selectsAppendMode.none
and unnecessarily re-creates the ddh5 file every time a row of data is added. This bugfix removes the part whereDDH5Writer.add_data
incorrectly sets theAppendMode
and letsdatadict_to_hdf5
decide whether to re-create or append to the ddh5 file. I have also removedDDH5Writer.inserted_rows
because it is not used anywhere else.