You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ext/MTKBifurcationKitExt.jl
+51-26Lines changed: 51 additions & 26 deletions
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ import BifurcationKit
9
9
### Observable Plotting Handling ###
10
10
11
11
# Functor used when the plotting variable is an observable. Keeps track of the required information for computing the observable's value at each point of the bifurcation diagram.
12
-
struct ObservableRecordFromSolution{S,T}
12
+
struct ObservableRecordFromSolution{S,T}
13
13
# The equations determining the observables values.
14
14
obs_eqs::S
15
15
# The index of the observable that we wish to plot.
# Gets the (base) substitution values for parameters.
36
-
subs_vals_params =Pair.(parameters(nsys),p_vals)
40
+
subs_vals_params =Pair.(parameters(nsys),p_vals)
37
41
# Gets the (base) substitution values for observables.
38
-
subs_vals_obs = [obs.lhs =>substitute(obs.rhs, [subs_vals_states; subs_vals_params]) for obs inobserved(nsys)]
42
+
subs_vals_obs = [obs.lhs =>substitute(obs.rhs,
43
+
[subs_vals_states; subs_vals_params]) for obs inobserved(nsys)]
39
44
# Sometimes observables depend on other observables, hence we make a second upate to this vector.
40
-
subs_vals_obs = [obs.lhs =>substitute(obs.rhs, [subs_vals_states; subs_vals_params; subs_vals_obs]) for obs inobserved(nsys)]
45
+
subs_vals_obs = [obs.lhs =>substitute(obs.rhs,
46
+
[subs_vals_states; subs_vals_params; subs_vals_obs]) for obs inobserved(nsys)]
41
47
# During the bifurcation process, teh value of some states, parameters, and observables may vary (and are calculated in each step). Those that are not are stored in this vector
0 commit comments