summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <daniel.friesel@uos.de>2021-02-25 14:40:55 +0100
committerDaniel Friesel <daniel.friesel@uos.de>2021-02-25 14:40:55 +0100
commit4e3cfbf5ed0e30daf30dd39d88c0b21769b76278 (patch)
tree18fa7836903b48bf74c4869308c310ce5971dec8
parentf96a52a8b8e8e820f462b8f269a261b31a262441 (diff)
pelt_refine: Fix "no sub-states" handling
-rw-r--r--lib/model.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/model.py b/lib/model.py
index 07e56f1..99626bb 100644
--- a/lib/model.py
+++ b/lib/model.py
@@ -1088,7 +1088,7 @@ class PTAModel(AnalyticModel):
"power_std": self.by_param[by_param_key]["power_std"],
}
]
- return (substate_counts, substate_data)
+ return 1, (substate_counts, substate_data)
num_changepoints = np.argmax(np.bincount(num_changepoints_by_trace))