def setUp(self): self.oil = ts_io.read_series('data/oil.csv') self.oil_ts = converters.series_as_ts(self.oil) self.mat = converters.matrix([[1,2,3],[2,3,4]]) self.acc = wrappers.accuracy(wrappers.thetaf(self.oil_ts))
def test_thetaf(self): fc = wrappers.thetaf(self.oil) self.assertAlmostEqual(fc.point_fc[2011], 470.9975, places=3) self.assertAlmostEqual(fc.point_fc[2020], 500.0231, places=3) self.assertAlmostEqual(fc.lower80[2011], 408.5509, places=3) self.assertAlmostEqual(fc.upper95[2020], 802.0053, places=3)
def test_thetaf(self): fc_py = wrappers.thetaf(self.oil_py) fc_r = self.fc.thetaf(self.oil_r) self._check_points(fc_py, fc_r)