Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions bletl/growth.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,10 +352,10 @@ def fit_mu_t(
"segment": numpy.arange(TS),
}
with pm.Model(coords=coords) as pmodel:
pm.ConstantData("known_switchpoints", t_switchpoints_known)
pm.ConstantData("t_data", t_data, dims="timepoint")
pm.ConstantData("t_segments", t_segments, dims="segment")
dt = pm.ConstantData("dt", numpy.diff(t_data), dims="segment")
pm.Data("known_switchpoints", t_switchpoints_known)
pm.Data("t_data", t_data, dims="timepoint")
pm.Data("t_segments", t_segments, dims="segment")
dt = pm.Data("dt", numpy.diff(t_data), dims="segment")

# The init dist for the random walk is where each segment starts.
# Here we center it on the user-provided mu_prior,
Expand Down Expand Up @@ -428,7 +428,7 @@ def fit_mu_t(
)
calibration_model.loglikelihood(
x=Xt,
y=pm.ConstantData("backscatter", y, dims=("timepoint",)),
y=pm.Data("backscatter", y, dims=("timepoint",)),
name=f"{replicate_id}_{calibration_model.dependent_key}",
dims="timepoint",
)
Expand Down
Loading
Loading