From a9cba3cd651a525bc9a2463683d5b0d9b19ca6d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20Andr=C3=A9s=20Marino=20Rojas?= <47573394+Marinovsky@users.noreply.github.com> Date: Mon, 28 Oct 2024 09:07:40 -0500 Subject: [PATCH] Fix camel case bug (#510) --- lean/commands/optimize.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lean/commands/optimize.py b/lean/commands/optimize.py index 48ede3d0..8b686bee 100644 --- a/lean/commands/optimize.py +++ b/lean/commands/optimize.py @@ -389,8 +389,8 @@ def optimize(project: Path, created=datetime.now(), completed=True, progress=1.0, - runtimeStatistics=optimal_results["RuntimeStatistics"], - statistics=optimal_results["Statistics"]) + runtimeStatistics=optimal_results["runtimeStatistics"], + statistics=optimal_results["statistics"]) logger.info(f"Optimal parameters: {optimal_parameters.replace(':', ': ').replace(',', ', ')}") logger.info(f"Optimal backtest results:")