Remove encoding specifics, gitattributes to echeckout as utf8

This commit is contained in:
Matthias 2021-05-01 17:41:40 +02:00
parent e0ca3c014c
commit 1cb430f59b
2 changed files with 5 additions and 4 deletions

1
.gitattributes vendored
View File

@ -1,3 +1,4 @@
* encoding=UTF-8
*.py eol=lf *.py eol=lf
*.sh eol=lf *.sh eol=lf
*.ps1 eol=crlf *.ps1 eol=crlf

View File

@ -353,7 +353,7 @@ class Hyperopt:
f"Total profit {results_metrics['total_profit']: 11.8f} {stake_cur} " f"Total profit {results_metrics['total_profit']: 11.8f} {stake_cur} "
f"({results_metrics['profit']: 7.2f}\N{GREEK CAPITAL LETTER SIGMA}%). " f"({results_metrics['profit']: 7.2f}\N{GREEK CAPITAL LETTER SIGMA}%). "
f"Avg duration {results_metrics['duration']:5.1f} min." f"Avg duration {results_metrics['duration']:5.1f} min."
).encode('utf-8', 'replace').decode('utf-8') )
def get_optimizer(self, dimensions: List[Dimension], cpu_count) -> Optimizer: def get_optimizer(self, dimensions: List[Dimension], cpu_count) -> Optimizer:
return Optimizer( return Optimizer(