From 9235bd0178aca613159334e3ba3053b217db50fa Mon Sep 17 00:00:00 2001 From: Torkel Loman Date: Tue, 16 Jul 2024 09:24:48 -0400 Subject: [PATCH] Update docs/src/model_creation/network_analysis.md Co-authored-by: Sam Isaacson --- docs/src/model_creation/network_analysis.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/model_creation/network_analysis.md b/docs/src/model_creation/network_analysis.md index bac2292896..d5fb505850 100644 --- a/docs/src/model_creation/network_analysis.md +++ b/docs/src/model_creation/network_analysis.md @@ -565,7 +565,7 @@ plot(sol) Any species eliminated using `remove_conserved = true` will not be plotted by default. However, it can be added to the plot using [the `idxs` plotting option](@ref simulation_plotting_options). E.g. here we would use `plot(sol; idxs = [:X₁, :X₂])` to plot both species. !!! danger - Currently, there is a bug where the values associated with conservation laws are not updated properly in response to [`remake`](@ref simulation_structure_interfacing_problems_remake) (or [other problem-updating functions, such as `getu`](@ref simulation_structure_interfacing_functions)). Hence, problems created using the `remove_conserved = true` *should not* be modified. + Currently, there is a bug in MTK where the values associated with conservation laws are not updated properly in response to [`remake`](@ref simulation_structure_interfacing_problems_remake) (or [other problem-updating functions, such as `getu`](@ref simulation_structure_interfacing_functions)). Hence, problems created using `remove_conserved = true` *should not* be modified, i.e. by changing initial conditions or the values of the `Γ`'s directly. Instead, to change these values new problems must be generated with the new initial condition map. While `X₂` is an observable (and not unknown) of the ODE, we can [access it](@ref simulation_structure_interfacing_problems) just like if `remove_conserved = true` has not been used: ```@example network_analysis_conservation_laws