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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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)