summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDaniel Friesel <daniel.friesel@uos.de>2021-03-22 13:55:08 +0100
committerDaniel Friesel <daniel.friesel@uos.de>2021-03-22 13:55:08 +0100
commit93054a5dbf0bec19c06aeeaf1114459d57ff76aa (patch)
tree9d4b0175a1a28a8fb919736364d11383674c7fb5 /test
parent3eb0f39113b4d550819f18cfe38ba57a2d541bfd (diff)
update tests for new timer sync algorithm
Diffstat (limited to 'test')
-rwxr-xr-xtest/test_ptamodel.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/test/test_ptamodel.py b/test/test_ptamodel.py
index ece83c5..aa0a10f 100755
--- a/test/test_ptamodel.py
+++ b/test/test_ptamodel.py
@@ -1574,13 +1574,13 @@ class TestFromFile(unittest.TestCase):
self.assertAlmostEqual(static_model("trans100u", "duration"), 158, places=0)
self.assertAlmostEqual(static_model("trans100u", "power"), 935, places=0)
self.assertAlmostEqual(static_model("trans10m", "duration"), 10097, places=0)
- self.assertAlmostEqual(static_model("trans10m", "power"), 6082, places=0)
+ self.assertAlmostEqual(static_model("trans10m", "power"), 6084, places=0)
self.assertAlmostEqual(static_model("trans1m", "duration"), 1038, places=0)
self.assertAlmostEqual(static_model("trans1m", "power"), 2913, places=0)
self.assertAlmostEqual(static_model("trans2m", "duration"), 2044, places=0)
- self.assertAlmostEqual(static_model("trans2m", "power"), 4783, places=0)
+ self.assertAlmostEqual(static_model("trans2m", "power"), 4800, places=0)
self.assertAlmostEqual(static_model("trans5m", "duration"), 5062, places=0)
- self.assertAlmostEqual(static_model("trans5m", "power"), 5893, places=0)
+ self.assertAlmostEqual(static_model("trans5m", "power"), 5900, places=0)
def test_et_la_hfxt0(self):
raw_data = RawData(["test-data/20201203-113313-et_la_hfxt0.tar"])
@@ -1618,17 +1618,17 @@ class TestFromFile(unittest.TestCase):
"setup trans100u trans10m trans1m trans2m trans5m".split(" "),
)
static_model = model.get_static()
- self.assertAlmostEqual(static_model("IDLE", "power"), 1043, places=0)
+ self.assertAlmostEqual(static_model("IDLE", "power"), 1044, places=0)
self.assertAlmostEqual(static_model("setup", "duration"), 28, places=0)
- self.assertAlmostEqual(static_model("setup", "power"), 1874, places=0)
+ self.assertAlmostEqual(static_model("setup", "power"), 1982, places=0)
self.assertAlmostEqual(static_model("trans100u", "duration"), 159, places=0)
self.assertAlmostEqual(static_model("trans100u", "power"), 1408, places=0)
self.assertAlmostEqual(static_model("trans10m", "duration"), 10164, places=0)
self.assertAlmostEqual(static_model("trans10m", "power"), 6440, places=0)
self.assertAlmostEqual(static_model("trans1m", "duration"), 1045, places=0)
- self.assertAlmostEqual(static_model("trans1m", "power"), 4295, places=0)
+ self.assertAlmostEqual(static_model("trans1m", "power"), 4253, places=0)
self.assertAlmostEqual(static_model("trans2m", "duration"), 2058, places=0)
- self.assertAlmostEqual(static_model("trans2m", "power"), 5616, places=0)
+ self.assertAlmostEqual(static_model("trans2m", "power"), 5635, places=0)
self.assertAlmostEqual(static_model("trans5m", "duration"), 5096, places=0)
self.assertAlmostEqual(static_model("trans5m", "power"), 6405, places=0)