fix logger, debug some flake8 appeasements

This commit is contained in:
robcaulk
2022-05-05 14:37:37 +02:00
parent 29c2d1d189
commit 764f9449b4
5 changed files with 479 additions and 415 deletions

View File

@@ -204,12 +204,12 @@ class Backtesting:
"""
self.progress.init_step(BacktestState.DATALOAD, 1)
if self.config['freqaimodel']:
self.required_startup += int((self.config['freqai']['train_period']*86400) /
timeframe_to_seconds(self.config['timeframe']))
if self.config['freqai']['train_period'] > 0:
self.required_startup += int((self.config['freqai']['train_period'] * 86400) /
timeframe_to_seconds(self.config['timeframe']))
logger.info("Increasing startup_candle_count for freqai to %s", self.required_startup)
self.config['startup_candle_count'] = self.required_startup
data = history.load_data(
datadir=self.config['datadir'],
pairs=self.pairlists.whitelist,