summaryrefslogtreecommitdiff
path: root/lib/dfatool.py
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2018-05-07 14:00:58 +0200
committerDaniel Friesel <derf@finalrewind.org>2018-05-07 14:00:58 +0200
commit5c87123e003a43f96612d2d8a7c9b7593c4d375c (patch)
tree7b5ead6a4eef3b22858cac9ab906ef5a74ea15b0 /lib/dfatool.py
parent7a9df1d076b3d5f5edc6c360db204057cfb6034c (diff)
Add support for PTA to JSON serialization
Diffstat (limited to 'lib/dfatool.py')
-rwxr-xr-xlib/dfatool.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/dfatool.py b/lib/dfatool.py
index e2c0cb8..705902a 100755
--- a/lib/dfatool.py
+++ b/lib/dfatool.py
@@ -907,9 +907,10 @@ class EnergyModel:
return model_getter, info_getter
def to_json(self):
+ static_model = self.get_static()
_, param_info = self.get_fitted()
pta = PTA.from_json(self.hwmodel)
- pta.update(param_info)
+ pta.update(static_model, param_info)
return pta.to_json()
def states(self):