Update hyperopt.py

This commit is contained in:
Kamontat Chantrachirathumrong
2021-05-20 11:56:31 +07:00
committed by GitHub
parent c2b9da68e1
commit 6172e67fcd

View File

@@ -357,9 +357,9 @@ class Hyperopt:
trimed_df = trim_dataframe(df, timerange,
startup_candles=self.backtesting.required_startup)
if not trimed_df.empty:
processed[pair] = trimed_df
processed[pair] = trimed_df
else:
logger.warn(f'Pair {pair} got removed because triming dataframe left nothing')
logger.warn(f'Pair {pair} got removed because triming dataframe left nothing')
self.min_date, self.max_date = get_timerange(processed)