Skip to content

Commit

Permalink
Remove bug in CGM loss and set estimated parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
max-de-rooij committed Oct 31, 2023
1 parent 8b350bd commit d4f2634
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/MealModel.jl
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export meal_appearance, glucose_meal_appearance, plasma_glucose_flux, plasma_ins
export predict, output

# assimilation related functions
export make_predictor, make_loss, make_error, perform_preselection, create_full_parameter_vector
export make_predictor, make_loss, make_error, perform_preselection, create_full_parameter_vector, set_estimated_parameters

end

2 changes: 1 addition & 1 deletion src/assimilation/Loss.jl
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ function make_error(model::MixedMealModel, glucose_data, glucose_timepoints; sav

_glucose_reg_time = times[times .<= 240]

function _error(model_output, parameters, ::Any)
function _error(model_output, parameters)

# Data loss
glucose_loss = model_output.plasma_glucose[indices[1]] .- glucose_data
Expand Down

0 comments on commit d4f2634

Please sign in to comment.