From a2bbfd97fb9285d131a6a8be82e0728ff2d4f567 Mon Sep 17 00:00:00 2001 From: Sam Date: Mon, 21 Oct 2019 23:50:32 -0700 Subject: [PATCH] Fix bug in longSeason module. --- pydlm/modeler/longSeason.py | 2 +- pydlm/tests/testDlm.py | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/pydlm/modeler/longSeason.py b/pydlm/modeler/longSeason.py index c692cae9..889cfc74 100644 --- a/pydlm/modeler/longSeason.py +++ b/pydlm/modeler/longSeason.py @@ -201,7 +201,7 @@ def alter(self, date, dataPoint): pass - def updateEvaluation(self, step): + def updateEvaluation(self, step, data=None): """ update the evaluation matrix to a specific date This function is used when fitting the forward filter and backward smoother diff --git a/pydlm/tests/testDlm.py b/pydlm/tests/testDlm.py index 16aad548..5c9adffb 100644 --- a/pydlm/tests/testDlm.py +++ b/pydlm/tests/testDlm.py @@ -476,5 +476,8 @@ def testTune(self): self.dlm5.fit() self.dlm5.tune(maxit=10) + def testBuildFromBuilder(self): + self.dlm6.fit() + if __name__ == '__main__': unittest.main()