hdf5 datahandler should also create directory

This commit is contained in:
Matthias 2022-03-02 19:41:14 +01:00
parent e005439720
commit c5cf73e67b

View File

@ -77,6 +77,7 @@ class HDF5DataHandler(IDataHandler):
_data = data.copy() _data = data.copy()
filename = self._pair_data_filename(self._datadir, pair, timeframe, candle_type) filename = self._pair_data_filename(self._datadir, pair, timeframe, candle_type)
self.create_dir_if_needed(filename)
_data.loc[:, self._columns].to_hdf( _data.loc[:, self._columns].to_hdf(
filename, key, mode='a', complevel=9, complib='blosc', filename, key, mode='a', complevel=9, complib='blosc',