summaryrefslogtreecommitdiff
path: root/test/test_ptamodel.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_ptamodel.py
parent2b9aa06f7ca63eb58a4fe9abde9880fada1773e0 (diff)
AnalyticFunction: Remove _ prefix from public attributes
Diffstat (limited to 'test/test_ptamodel.py')
-rwxr-xr-xtest/test_ptamodel.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/test/test_ptamodel.py b/test/test_ptamodel.py
index 3237450..9abe3c0 100755
--- a/test/test_ptamodel.py
+++ b/test/test_ptamodel.py
@@ -134,26 +134,26 @@ class TestModels(unittest.TestCase):
param_model, param_info = model.get_fitted()
self.assertEqual(param_info("POWERDOWN", "power"), None)
self.assertEqual(
- param_info("RX", "power")["function"]._model_str,
+ param_info("RX", "power")["function"].model_function,
"0 + regression_arg(0) + regression_arg(1) * np.sqrt(parameter(datarate))",
)
self.assertAlmostEqual(
- param_info("RX", "power")["function"]._regression_args[0], 48530.7, places=0
+ param_info("RX", "power")["function"].model_args[0], 48530.7, places=0
)
self.assertAlmostEqual(
- param_info("RX", "power")["function"]._regression_args[1], 117, places=0
+ param_info("RX", "power")["function"].model_args[1], 117, places=0
)
self.assertEqual(param_info("STANDBY1", "power"), None)
self.assertEqual(
- param_info("TX", "power")["function"]._model_str,
+ param_info("TX", "power")["function"].model_function,
"0 + regression_arg(0) + regression_arg(1) * 1/(parameter(datarate)) + regression_arg(2) * parameter(txpower) + regression_arg(3) * 1/(parameter(datarate)) * parameter(txpower)",
)
self.assertEqual(
- param_info("epilogue", "timeout")["function"]._model_str,
+ param_info("epilogue", "timeout")["function"].model_function,
"0 + regression_arg(0) + regression_arg(1) * 1/(parameter(datarate))",
)
self.assertEqual(
- param_info("stopListening", "duration")["function"]._model_str,
+ param_info("stopListening", "duration")["function"].model_function,
"0 + regression_arg(0) + regression_arg(1) * 1/(parameter(datarate))",
)
@@ -371,7 +371,7 @@ class TestModels(unittest.TestCase):
param_model, param_info = model.get_fitted()
self.assertEqual(param_info("IDLE", "power"), None)
self.assertEqual(
- param_info("RX", "power")["function"]._model_str,
+ param_info("RX", "power")["function"].model_function,
"0 + regression_arg(0) + regression_arg(1) * np.log(parameter(symbolrate) + 1)",
)
self.assertEqual(param_info("SLEEP", "power"), None)
@@ -380,10 +380,10 @@ class TestModels(unittest.TestCase):
self.assertEqual(param_info("XOFF", "power"), None)
self.assertAlmostEqual(
- param_info("RX", "power")["function"]._regression_args[0], 84415, places=0
+ param_info("RX", "power")["function"].model_args[0], 84415, places=0
)
self.assertAlmostEqual(
- param_info("RX", "power")["function"]._regression_args[1], 206, places=0
+ param_info("RX", "power")["function"].model_args[1], 206, places=0
)