Skip to content

Commit

Permalink
optimeze code
Browse files Browse the repository at this point in the history
  • Loading branch information
SunsetWolf committed Jul 9, 2024
1 parent 21a1877 commit 3bcc944
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qlib/data/dataset/loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ def load(self, instruments=None, start_time=None, end_time=None) -> pd.DataFrame
try:
df_current = dl.load(instruments, start_time, end_time)
except:
df_current = dl.load(instruments=None, start_time, end_time)
df_current = dl.load(start_time, end_time)
warnings.warn(
"If the value of `instruments` cannot be processed, it will set instruments to None to get all the data."
)
Expand Down

0 comments on commit 3bcc944

Please sign in to comment.