Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion rdagent/utils/env.py
Original file line number Diff line number Diff line change
Expand Up @@ -1522,7 +1522,7 @@ def prepare(self, *args, **kwargs) -> None: # type: ignore[no-untyped-def]
qlib_data_path = next(iter(self.conf.extra_volumes.keys()))
if not (Path(qlib_data_path) / "qlib_data" / "cn_data").exists():
logger.info("We are downloading!")
cmd = "python -m qlib.run.get_data qlib_data --target_dir ~/.qlib/qlib_data/cn_data --region cn --interval 1d --delete_old False"
cmd = "python -m qlib.cli.data qlib_data --name qlib_data --target_dir ~/.qlib/qlib_data/cn_data --region cn --interval 1d --delete_old False"
self.check_output(entry=cmd)
else:
logger.info("Data already exists. Download skipped.")
Expand Down
2 changes: 1 addition & 1 deletion test/utils/test_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class QlibLocalEnv(LocalEnv):
def prepare(self) -> None:
if not (Path("~/.qlib/qlib_data/cn_data").expanduser().resolve().exists()):
self.check_output(
entry="python -m qlib.run.get_data qlib_data --target_dir ~/.qlib/qlib_data/cn_data --region cn",
entry="python -m qlib.cli.data qlib_data --name qlib_data --target_dir ~/.qlib/qlib_data/cn_data --region cn",
)
else:
print("Data already exists. Download skipped.")
Expand Down
Loading