From 5c012d79eb284a9f44dd46c93d235a64319b7934 Mon Sep 17 00:00:00 2001 From: hroff-1902 Date: Fri, 24 Apr 2020 18:14:07 +0300 Subject: [PATCH 1/2] Remove unused method --- freqtrade/optimize/hyperopt.py | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/freqtrade/optimize/hyperopt.py b/freqtrade/optimize/hyperopt.py index 68e7032d9..61e2a9b6f 100644 --- a/freqtrade/optimize/hyperopt.py +++ b/freqtrade/optimize/hyperopt.py @@ -293,21 +293,6 @@ class Hyperopt: self.hyperopt_table_header = 2 return output - @staticmethod - def print_results_explanation(results, total_epochs, highlight_best: bool, - print_colorized: bool) -> None: - """ - Log results explanation string - """ - explanation_str = Hyperopt._format_explanation_string(results, total_epochs) - # Colorize output - if print_colorized: - if results['total_profit'] > 0: - explanation_str = Fore.GREEN + explanation_str - if highlight_best and results['is_best']: - explanation_str = Style.BRIGHT + explanation_str - print(explanation_str) - @staticmethod def _format_explanation_string(results, total_epochs) -> str: return (("*" if results['is_initial_point'] else " ") + From 6e5f0869b33ac4e5059f9b96b80fb880e9be225a Mon Sep 17 00:00:00 2001 From: hroff-1902 Date: Fri, 24 Apr 2020 18:39:08 +0300 Subject: [PATCH 2/2] Remove another unused method --- freqtrade/optimize/hyperopt.py | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/freqtrade/optimize/hyperopt.py b/freqtrade/optimize/hyperopt.py index 61e2a9b6f..fcf50af6a 100644 --- a/freqtrade/optimize/hyperopt.py +++ b/freqtrade/optimize/hyperopt.py @@ -277,22 +277,6 @@ class Hyperopt: ) self.hyperopt_table_header = 2 - def get_results(self, results) -> str: - """ - Log results if it is better than any previous evaluation - """ - output = '' - is_best = results['is_best'] - - if self.print_all or is_best: - output = self.get_result_table( - self.config, results, self.total_epochs, - self.print_all, self.print_colorized, - self.hyperopt_table_header - ) - self.hyperopt_table_header = 2 - return output - @staticmethod def _format_explanation_string(results, total_epochs) -> str: return (("*" if results['is_initial_point'] else " ") +