From 9bb4259080601e5ab18690d7523bd8516dcb3db3 Mon Sep 17 00:00:00 2001 From: Linlang Date: Thu, 23 May 2024 07:19:04 +0800 Subject: [PATCH] fix get v0 data error --- qlib/tests/data.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qlib/tests/data.py b/qlib/tests/data.py index 0d53b2dc62..ed99e7cdfe 100644 --- a/qlib/tests/data.py +++ b/qlib/tests/data.py @@ -29,7 +29,7 @@ def __init__(self, delete_zip_file=False): self.delete_zip_file = delete_zip_file def merge_remote_url(self, file_name: str): - return f"{self.REMOTE_URL}/{file_name}" + return f"{self.REMOTE_URL}/{file_name}" if "/" in file_name else f"{self.REMOTE_URL}/v0/{file_name}" def download_data(self, file_name: str, target_dir: [Path, str], delete_old: bool = True): """