diff options
author | Birte Kristina Friesel <birte.friesel@uos.de> | 2024-01-15 08:07:40 +0100 |
---|---|---|
committer | Birte Kristina Friesel <birte.friesel@uos.de> | 2024-01-15 08:07:40 +0100 |
commit | 69a82af3c07c1a46014099e56ecb2eda98f0a28e (patch) | |
tree | 2281d15c0910d6994b1afc670359616277ef4fbb | |
parent | 94865648210a69544b049acf54991eba35d92c18 (diff) |
PTAModel.asses: support transitions with partial data
This can happen when --filter-observation is in use
-rw-r--r-- | lib/model.py | 2 |
1 files changed, 1 insertions, 1 deletions
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( |