From 761df330de3a3d27e9f74b28798fc41c8687c0a3 Mon Sep 17 00:00:00 2001 From: WinstonLiyt <104308117+WinstonLiyt@users.noreply.github.com> Date: Mon, 22 Jul 2024 14:40:14 +0800 Subject: [PATCH] Fix a small bug in file reading. --- rdagent/app/qlib_rd_loop/factor_from_report_sh.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rdagent/app/qlib_rd_loop/factor_from_report_sh.py b/rdagent/app/qlib_rd_loop/factor_from_report_sh.py index 504b16be..1b1bddcc 100644 --- a/rdagent/app/qlib_rd_loop/factor_from_report_sh.py +++ b/rdagent/app/qlib_rd_loop/factor_from_report_sh.py @@ -51,12 +51,12 @@ prompts_path = Path(__file__).parent / "prompts.yaml" prompts = Prompts(file_path=prompts_path) def save_progress(trace, current_index): - with open(PROP_SETTING.progress_file, "wb") as f: + with open(PROP_SETTING.progress_file_path, "wb") as f: pickle.dump((trace, current_index), f) def load_progress(): - if Path(PROP_SETTING.progress_file).exists(): - with open(PROP_SETTING.progress_file, "rb") as f: + if Path(PROP_SETTING.progress_file_path).exists(): + with open(PROP_SETTING.progress_file_path, "rb") as f: return pickle.load(f) return Trace(scen=scen), 0