Skip to content

Commit e0cd284

Browse files
authored
update mechanistic baranyi exp_start to use fitted h0 parameter (#50)
1 parent 2fbaeb0 commit e0cd284

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/growthcurves/inference.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -725,8 +725,11 @@ def _extract_stats_mech_baranyi(
725725
stats["fit_method"] = "model_fitting_mech_baranyi"
726726
return stats
727727

728-
# Phase boundaries using specified method
729-
exp_phase_start, exp_phase_end = compute_phase_boundaries(
728+
# Lag time is the fitted h0 parameter directly
729+
exp_phase_start = float(params["h0"])
730+
731+
# Exp phase end using specified method
732+
_, exp_phase_end = compute_phase_boundaries(
730733
t_dense,
731734
N_dense,
732735
method=phase_boundary_method,

0 commit comments

Comments
 (0)