mirror of
https://github.com/wassname/catalyst.git
synced 2026-07-26 13:18:31 +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:
@@ -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