Skip to content

fix: add 5min collector defaults#2224

Open
he-yufeng wants to merge 1 commit into
microsoft:mainfrom
he-yufeng:fix/baostock-5min-default-dates
Open

fix: add 5min collector defaults#2224
he-yufeng wants to merge 1 commit into
microsoft:mainfrom
he-yufeng:fix/baostock-5min-default-dates

Conversation

@he-yufeng
Copy link
Copy Markdown

Summary

  • add 5min default start/end date aliases to BaseCollector
  • cover the default path with a small dummy collector test

Fixes #1885

To verify

  • .venv/Scripts/python.exe -m pytest tests/test_data_collector_base.py -q
  • .venv/Scripts/python.exe -m py_compile scripts/data_collector/base.py scripts/data_collector/baostock_5min/collector.py tests/test_data_collector_base.py
  • git diff --check

Note: I first tried pip install -e .[test] in a local Windows venv, but editable install hit the existing qlib C-extension build path on this machine (pyconfig.h could not include io.h). The focused test only needs the source tree and Python-level imports, so I used the local venv with PYTHONPATH pointed at the checkout.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

AttributeError: 'BaostockCollectorHS3005min' object has no attribute 'DEFAULT_START_DATETIME_5MIN'

1 participant