summaryrefslogtreecommitdiff
path: root/test/test_timingharness.py
diff options
context:
space:
mode:
authorDaniel Friesel <daniel.friesel@uos.de>2020-07-03 12:26:50 +0200
committerDaniel Friesel <daniel.friesel@uos.de>2020-07-03 12:26:50 +0200
commitadaa03cf0247b065e6b3863cf16ad88ee24f5169 (patch)
tree82ee685bc24872d233965b0dbee1c58f0bc61d7e /test/test_timingharness.py
parent2b9aa06f7ca63eb58a4fe9abde9880fada1773e0 (diff)
AnalyticFunction: Remove _ prefix from public attributes
Diffstat (limited to 'test/test_timingharness.py')
-rwxr-xr-xtest/test_timingharness.py32
1 files changed, 16 insertions, 16 deletions
diff --git a/test/test_timingharness.py b/test/test_timingharness.py
index 29e21f8..13289ea 100755
--- a/test/test_timingharness.py
+++ b/test/test_timingharness.py
@@ -30,25 +30,25 @@ class TestModels(unittest.TestCase):
self.assertEqual(param_info("setRetries", "duration"), None)
self.assertEqual(param_info("setup", "duration"), None)
self.assertEqual(
- param_info("write", "duration")["function"]._model_str,
+ param_info("write", "duration")["function"].model_function,
"0 + regression_arg(0) + regression_arg(1) * parameter(max_retry_count) + regression_arg(2) * parameter(retry_delay) + regression_arg(3) * parameter(max_retry_count) * parameter(retry_delay)",
)
self.assertAlmostEqual(
- param_info("write", "duration")["function"]._regression_args[0],
+ param_info("write", "duration")["function"].model_args[0],
1163,
places=0,
)
self.assertAlmostEqual(
- param_info("write", "duration")["function"]._regression_args[1],
+ param_info("write", "duration")["function"].model_args[1],
464,
places=0,
)
self.assertAlmostEqual(
- param_info("write", "duration")["function"]._regression_args[2], 1, places=0
+ param_info("write", "duration")["function"].model_args[2], 1, places=0
)
self.assertAlmostEqual(
- param_info("write", "duration")["function"]._regression_args[3], 1, places=0
+ param_info("write", "duration")["function"].model_args[3], 1, places=0
)
def test_dependent_parameter_pruning(self):
@@ -80,25 +80,25 @@ class TestModels(unittest.TestCase):
self.assertEqual(param_info("setRetries", "duration"), None)
self.assertEqual(param_info("setup", "duration"), None)
self.assertEqual(
- param_info("write", "duration")["function"]._model_str,
+ param_info("write", "duration")["function"].model_function,
"0 + regression_arg(0) + regression_arg(1) * parameter(max_retry_count) + regression_arg(2) * parameter(retry_delay) + regression_arg(3) * parameter(max_retry_count) * parameter(retry_delay)",
)
self.assertAlmostEqual(
- param_info("write", "duration")["function"]._regression_args[0],
+ param_info("write", "duration")["function"].model_args[0],
1163,
places=0,
)
self.assertAlmostEqual(
- param_info("write", "duration")["function"]._regression_args[1],
+ param_info("write", "duration")["function"].model_args[1],
464,
places=0,
)
self.assertAlmostEqual(
- param_info("write", "duration")["function"]._regression_args[2], 1, places=0
+ param_info("write", "duration")["function"].model_args[2], 1, places=0
)
self.assertAlmostEqual(
- param_info("write", "duration")["function"]._regression_args[3], 1, places=0
+ param_info("write", "duration")["function"].model_args[3], 1, places=0
)
def test_function_override(self):
@@ -139,28 +139,28 @@ class TestModels(unittest.TestCase):
self.assertEqual(param_info("setRetries", "duration"), None)
self.assertEqual(param_info("setup", "duration"), None)
self.assertEqual(
- param_info("write", "duration")["function"]._model_str,
+ param_info("write", "duration")["function"].model_function,
"(parameter(auto_ack!) * (regression_arg(0) + regression_arg(1) * parameter(max_retry_count) + regression_arg(2) * parameter(retry_delay) + regression_arg(3) * parameter(max_retry_count) * parameter(retry_delay))) + ((1 - parameter(auto_ack!)) * regression_arg(4))",
)
self.assertAlmostEqual(
- param_info("write", "duration")["function"]._regression_args[0],
+ param_info("write", "duration")["function"].model_args[0],
1162,
places=0,
)
self.assertAlmostEqual(
- param_info("write", "duration")["function"]._regression_args[1],
+ param_info("write", "duration")["function"].model_args[1],
464,
places=0,
)
self.assertAlmostEqual(
- param_info("write", "duration")["function"]._regression_args[2], 1, places=0
+ param_info("write", "duration")["function"].model_args[2], 1, places=0
)
self.assertAlmostEqual(
- param_info("write", "duration")["function"]._regression_args[3], 1, places=0
+ param_info("write", "duration")["function"].model_args[3], 1, places=0
)
self.assertAlmostEqual(
- param_info("write", "duration")["function"]._regression_args[4],
+ param_info("write", "duration")["function"].model_args[4],
1086,
places=0,
)