Skip to content

fix: pass --interval from BaseRun to Normalize in normalize_data#2200

Open
zhaochaofeng wants to merge 1 commit intomicrosoft:mainfrom
zhaochaofeng:pr/fix-interval
Open

fix: pass --interval from BaseRun to Normalize in normalize_data#2200
zhaochaofeng wants to merge 1 commit intomicrosoft:mainfrom
zhaochaofeng:pr/fix-interval

Conversation

@zhaochaofeng
Copy link
Copy Markdown

Description

Fixed the issue where the Fire CLI consumed the --interval parameter for BaseRun.__init__ but did not forward it to the Normalize constructor.
Added interval parameter passing to ensure PitNormalize uses the user-provided interval value instead of defaulting to "quarterly".

Motivation and Context

The CLI flag --interval was not being passed to the normalization component, causing PitNormalize to always use the default "quarterly" format regardless of user input.
This PR ensures the interval configuration works correctly in the data normalization workflow.

How Has This Been Tested?

python qlib/scripts/data_collector/pit/collector.py normalize_data
--interval annual
--source_dir "/.qlib/qlib_data/custom_data_hfq/pit_annual"
--normalize_dir "
/.qlib/qlib_data/custom_data_hfq/pit_normalized_annual"

Types of changes

  • Fix bugs
  • Add new feature
  • Update documentation

Fire CLI consumes --interval for BaseRun.__init__ but does not forward
it to the Normalize constructor, causing PitNormalize to always default
to "quarterly" format regardless of the --interval flag.

Co-Authored-By: Claude Opus 4.6 <noreply@openclaude.dev>
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.

1 participant