Skip to content

Get wrong data uri when updating expression cache #2012

@LeetaH666

Description

@LeetaH666

🐛 Bug Description

When updating DiskExpressionCache, it raises KeyError because it tries to get data uri from the DEFAULT_FREQ while I have specified several other freqs.

To Reproduce

Call DiskExpressionCache().update() when specifying several freqs when initiating qlib server.

Expected Behavior

Correctly update the cache without error.

Environment

Note: User could run cd scripts && python collect_info.py all under project directory to get system information
and paste them here directly.

  • Qlib version: 0.9.8.dev11+g348228907.d20250915
  • Python version: 3.8.20 (default, Oct 3 2024, 15:24:27) [GCC 11.2.0]
  • OS (Windows, Linux, MacOS): Linux
  • Commit number (optional, please provide it if you are using the dev version): 213eb6c

Additional Notes

I think just inputting freq in C.dpm.get_data_uri() at line 593 in qlib.data.cache can solve the problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions