From 69a82af3c07c1a46014099e56ecb2eda98f0a28e Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Mon, 15 Jan 2024 08:07:40 +0100 Subject: PTAModel.asses: support transitions with partial data This can happen when --filter-observation is in use --- lib/model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/model.py b/lib/model.py index 05ea855..cd3dcb5 100644 --- a/lib/model.py +++ b/lib/model.py @@ -1141,7 +1141,7 @@ class PTAModel(AnalyticModel): else: detailed_results = super().assess(model_function, ref=ref) for name, elem in sorted(ref.items()): - if elem["isa"] == "transition": + if elem["isa"] == "transition" and "power" in elem and "duration" in elem: predicted_data = np.array( list( map( -- cgit v1.2.3