summaryrefslogtreecommitdiff
path: root/lib/model.py
diff options
context:
space:
mode:
authorDaniel Friesel <daniel.friesel@uos.de>2021-02-15 12:50:46 +0100
committerDaniel Friesel <daniel.friesel@uos.de>2021-02-15 12:50:46 +0100
commit0b6b55d6a8529d71c42393a6ca4818313c73e554 (patch)
treed08bb5ad50cdbc22e010292f61fee17055fda4d0 /lib/model.py
parent2e6d1db608181b05efe5ac1e97dcc1e094c7fd58 (diff)
debug output
Diffstat (limited to 'lib/model.py')
-rw-r--r--lib/model.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/model.py b/lib/model.py
index bfe0a3c..518566c 100644
--- a/lib/model.py
+++ b/lib/model.py
@@ -942,7 +942,9 @@ class PTAModel:
changepoints_by_trace.append(changepoints_by_penalty[penalty])
if np.median(num_changepoints_by_trace) < 1:
- logger.debug(f" we found no changepoints with penalty {penalty}")
+ logger.debug(
+ f" we found no changepoints {num_changepoints_by_trace} with penalties {penalty_by_trace}"
+ )
substate_counts = [1 for i in self.by_param[by_param_key]["param"]]
substate_data = {
"duration": self.by_param[by_param_key]["duration"],
@@ -954,7 +956,7 @@ class PTAModel:
num_changepoints = np.argmax(np.bincount(num_changepoints_by_trace))
logger.debug(
- f" we found {num_changepoints} changepoints from {num_changepoints_by_trace} with penalties {penalty_by_trace}"
+ f" we found {num_changepoints} changepoints {num_changepoints_by_trace} with penalties {penalty_by_trace}"
)
return self.pelt.calc_raw_states(
self.by_param[by_param_key]["timestamps"],