fix pep8 warnings
This commit is contained in:
@@ -35,7 +35,8 @@ def get_timeframe(data: Dict[str, Dict]) -> Tuple[arrow.Arrow, arrow.Arrow]:
|
||||
return arrow.get(min_date), arrow.get(max_date)
|
||||
|
||||
|
||||
def generate_text_table(data: Dict[str, Dict], results: DataFrame, stake_currency, ticker_interval) -> str:
|
||||
def generate_text_table(
|
||||
data: Dict[str, Dict], results: DataFrame, stake_currency, ticker_interval) -> str:
|
||||
"""
|
||||
Generates and returns a text table for the given backtest data and the results dataframe
|
||||
:return: pretty printed table with tabulate as str
|
||||
|
@@ -49,7 +49,7 @@ OPTIMIZE_CONFIG = {
|
||||
}
|
||||
|
||||
# Monkey patch config
|
||||
from freqtrade import main
|
||||
from freqtrade import main # noqa
|
||||
main._CONF = OPTIMIZE_CONFIG
|
||||
|
||||
|
||||
@@ -102,6 +102,7 @@ SPACE = {
|
||||
]),
|
||||
}
|
||||
|
||||
|
||||
def log_results(results):
|
||||
"if results is better than _TO_BEAT show it"
|
||||
|
||||
@@ -118,6 +119,7 @@ def log_results(results):
|
||||
print('.', end='')
|
||||
sys.stdout.flush()
|
||||
|
||||
|
||||
def optimizer(params):
|
||||
global _CURRENT_TRIES
|
||||
|
||||
@@ -148,7 +150,7 @@ def optimizer(params):
|
||||
'result': result,
|
||||
'results': results
|
||||
}
|
||||
|
||||
|
||||
# logger.info('{:5d}/{}: {}'.format(_CURRENT_TRIES, TOTAL_TRIES, result))
|
||||
log_results(result_data)
|
||||
|
||||
|
Reference in New Issue
Block a user