Merge pull request #3241 from freqtrade/fix/deprecation

Use non-deprectated parameter for progressbar
This commit is contained in:
hroff-1902 2020-05-01 19:18:28 +03:00 committed by GitHub
commit 0f50449196
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -648,7 +648,7 @@ class Hyperopt:
' [', progressbar.ETA(), ', ', progressbar.Timer(), ']',
]
with progressbar.ProgressBar(
maxval=self.total_epochs, redirect_stdout=False, redirect_stderr=False,
max_value=self.total_epochs, redirect_stdout=False, redirect_stderr=False,
widgets=widgets
) as pbar:
EVALS = ceil(self.total_epochs / jobs)