Bugfix in hwang

This commit is contained in:
Petrônio Cândido de Lima e Silva 2018-07-05 22:00:42 -03:00 committed by GitHub
parent 043c28d480
commit fd9b823d8e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,6 +20,10 @@ class HighOrderFTS(fts.FTS):
def forecast(self, ndata, **kwargs): def forecast(self, ndata, **kwargs):
if 'order' in kwargs:
self.order = kwargs.get('order',self.order)
self.max_lag = self.order
if self.sets == None: if self.sets == None:
self.sets = self.partitioner.sets self.sets = self.partitioner.sets
ordered_sets = self.partitioner.ordered_sets ordered_sets = self.partitioner.ordered_sets