summaryrefslogtreecommitdiff
path: root/bin/test.py
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-02-14 08:29:26 +0100
committerDaniel Friesel <derf@finalrewind.org>2019-02-14 08:29:26 +0100
commit7ed42ca64831018aa7ea379651225d66412e62f0 (patch)
tree6a0ac767a39001901cd6ffc6d63a3ee1e9d61e56 /bin/test.py
parent906a01beeb24fafa691f585018a0ec809a88de08 (diff)
improved cross-validation in analyze-archive; fallback for param_lut_model
Diffstat (limited to 'bin/test.py')
-rwxr-xr-xbin/test.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/test.py b/bin/test.py
index f53a9ef..c05ed51 100755
--- a/bin/test.py
+++ b/bin/test.py
@@ -87,7 +87,7 @@ class TestStaticModel(unittest.TestCase):
self.assertAlmostEqual(static_model('off', 'duration'), 9130, places=0)
self.assertAlmostEqual(static_model('setBrightness', 'duration'), 9130, places=0)
- param_lut_model = model.get_param_lut()
+ param_lut_model = model.get_param_lut(fallback=True)
self.assertAlmostEqual(param_lut_model('OFF', 'power', param=[None, None]), 7124, places=0)
with self.assertRaises(KeyError):
param_lut_model('ON', 'power', param=[None, None])