mirror of
https://github.com/wassname/catalyst.git
synced 2026-10-28 12:51:29 +08:00
BUG: Ensure that window length value is sanity checked.
When moving BatchTransform off of EventWindow as a base object, the checking of window length was lost, restore that check using the same function as EventWindow.
This commit is contained in:
1 parent
c12102d7b1
commit
38ae8bbb67
1 file changed
+3
@@ -367,7 +367,10 @@ class BatchTransform(object):
|
||||
self.field_names = set()
|
||||
|
||||
self.refresh_period = refresh_period
|
||||
|
||||
check_window_length(window_length)
|
||||
self.window_length = window_length
|
||||
|
||||
self.trading_days_total = 0
|
||||
self.window = None
|
||||
|
||||
|
||||
Reference in new issue
Block a user