Skip to content

fix: normalize frequency strings so '1day' and 'day' are equivalent#2175

Open
EdenRochmanSharabi wants to merge 1 commit intomicrosoft:mainfrom
EdenRochmanSharabi:fix/freq-normalization
Open

fix: normalize frequency strings so '1day' and 'day' are equivalent#2175
EdenRochmanSharabi wants to merge 1 commit intomicrosoft:mainfrom
EdenRochmanSharabi:fix/freq-normalization

Conversation

@EdenRochmanSharabi
Copy link
Copy Markdown

Fixes #1925. Added normalize_freq() helper in resam.py that canonicalizes freq strings.

…1925)

Add normalize_freq() helper in resam.py that converts frequency strings
to their canonical form via Freq(freq).__str__(), ensuring that
'1day'/'d'/'1d' all map to 'day', '1min'/'minute' map to '1min', etc.
Applied at the entry of get_higher_eq_freq_feature to prevent cache
misses and lookup failures from equivalent but non-identical freq strings.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@EdenRochmanSharabi
Copy link
Copy Markdown
Author

@microsoft-github-policy-service agree

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.

backtest occur errror while executor's time_per_step=1day

1 participant