diff options
author | Daniel Friesel <daniel.friesel@uos.de> | 2021-03-02 13:53:00 +0100 |
---|---|---|
committer | Daniel Friesel <daniel.friesel@uos.de> | 2021-03-02 13:53:00 +0100 |
commit | 6383ef088e91273c68cd77e8215ad3920dc50ea1 (patch) | |
tree | 2894b5c788af14a1902744d88c75a2f1749b6d3e /lib/automata.py | |
parent | 7a24fa3f80ffab54488b2f01c31a500d79519f94 (diff) |
move ModelAttribute to parameters module
Diffstat (limited to 'lib/automata.py')
-rwxr-xr-x | lib/automata.py | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/lib/automata.py b/lib/automata.py index ebe1871..50cdcd0 100755 --- a/lib/automata.py +++ b/lib/automata.py @@ -1,6 +1,7 @@ """Classes and helper functions for PTA and other automata.""" from .functions import AnalyticFunction, NormalizationFunction +from .parameters import ModelAttribute from .utils import is_numeric import itertools import logging @@ -131,10 +132,7 @@ class PTAAttribute: return self.value_error["mae"] def to_json(self): - ret = { - "static": self.value, - "static_error": self.value_error, - } + ret = {"static": self.value, "static_error": self.value_error} if self.function: ret["function"] = { "raw": self.function.model_function, @@ -752,10 +750,7 @@ class PTA: Compatible with the legacy dfatool/perl format. """ - kwargs = { - "parameters": list(), - "initial_param_values": list(), - } + kwargs = {"parameters": list(), "initial_param_values": list()} for param in sorted(json_input["parameter"].keys()): kwargs["parameters"].append(param) |