From 7952d7993209978094417ffa2b4f536d2abd6dfa Mon Sep 17 00:00:00 2001 From: Jactus Date: Fri, 27 Nov 2020 22:26:53 +0800 Subject: [PATCH] Fix script --- examples/run_all_model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/run_all_model.py b/examples/run_all_model.py index f40f11444..05839a125 100644 --- a/examples/run_all_model.py +++ b/examples/run_all_model.py @@ -153,7 +153,7 @@ def get_all_results(folders) -> dict: result["information_ratio_with_cost"] = list() result["max_drawdown_with_cost"] = list() for recorder_id in recorders: - if recorders[recorder_id]["status"] == "FINISHED": + if recorders[recorder_id].status == "FINISHED": recorder = R.get_recorder(recorder_id=recorder_id, experiment_name=fn) metrics = recorder.list_metrics() result["annualized_return_with_cost"].append(metrics["excess_return_with_cost.annualized_return"])