From 9b285ce846fe2ee13e8d80a72a542cfd21b0b98d Mon Sep 17 00:00:00 2001 From: chaofeng Date: Sat, 2 May 2026 17:07:46 +0800 Subject: [PATCH] fix: pass --interval from BaseRun to Normalize in normalize_data 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 --- scripts/data_collector/base.py | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/data_collector/base.py b/scripts/data_collector/base.py index 672e593fa5a..abb762c6825 100644 --- a/scripts/data_collector/base.py +++ b/scripts/data_collector/base.py @@ -440,6 +440,7 @@ def normalize_data(self, date_field_name: str = "date", symbol_field_name: str = $ python collector.py normalize_data --source_dir ~/.qlib/instrument_data/source --normalize_dir ~/.qlib/instrument_data/normalize --region CN --interval 1d """ _class = getattr(self._cur_module, self.normalize_class_name) + kwargs.setdefault("interval", self.interval) yc = Normalize( source_dir=self.source_dir, target_dir=self.normalize_dir,