From 5c87123e003a43f96612d2d8a7c9b7593c4d375c Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Mon, 7 May 2018 14:00:58 +0200 Subject: Add support for PTA to JSON serialization --- lib/dfatool.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/dfatool.py') 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): -- cgit v1.2.3