summaryrefslogtreecommitdiff
path: root/test/test_parameters.py
diff options
context:
space:
mode:
authorDaniel Friesel <daniel.friesel@uos.de>2020-07-06 11:47:05 +0200
committerDaniel Friesel <daniel.friesel@uos.de>2020-07-06 11:47:05 +0200
commitd7ca9acbb668d4c73f07eddf0278c08bbdae7be7 (patch)
tree655b6aac65e5a553c9e0228778fe8f83c305ec04 /test/test_parameters.py
parent1406e32aaa0466f5e43d270b0b10e54702210769 (diff)
Move ParamFit, PTAModel, AnalyticModel to model.py module
Diffstat (limited to 'test/test_parameters.py')
-rwxr-xr-xtest/test_parameters.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/test_parameters.py b/test/test_parameters.py
index 22efccf..e36b1a1 100755
--- a/test/test_parameters.py
+++ b/test/test_parameters.py
@@ -1,9 +1,9 @@
#!/usr/bin/env python3
-from dfatool import dfatool as dt
from dfatool import parameters
from dfatool.utils import by_name_to_by_param
from dfatool.functions import analytic
+from dfatool.model import ParallelParamFit
import unittest
import numpy as np
@@ -52,7 +52,7 @@ class TestModels(unittest.TestCase):
# Fit individual functions for each parameter (only "p_linear" in this case)
- paramfit = dt.ParallelParamFit(by_param)
+ paramfit = ParallelParamFit(by_param)
paramfit.enqueue("TX", "power", 1, "p_linear")
paramfit.fit()
@@ -133,7 +133,7 @@ class TestModels(unittest.TestCase):
self.assertEqual(stats.depends_on_param("someKey", "ll", "log_inv"), True)
self.assertEqual(stats.depends_on_param("someKey", "ll", "square_none"), False)
- paramfit = dt.ParallelParamFit(by_param)
+ paramfit = ParallelParamFit(by_param)
paramfit.enqueue("someKey", "lls", 0, "lin_lin")
paramfit.enqueue("someKey", "lls", 1, "log_inv")
paramfit.enqueue("someKey", "lls", 2, "square_none")