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
@@ -1178,7 +1178,7 @@ Generates a function that computes the observed value(s) `ts` in the system `sys
1178
1178
- `ts`: The symbolic observed values whose value should be computed
1179
1179
1180
1180
## Keywords
1181
-
- `return_inplace = false`: If true and the observed value is a vector, then return both the in place and out of place methods.
1181
+
- `return_inplace = Val(false)`: If true and the observed value is a vector, then return both the in place and out of place methods. Can take boolean `true` or `false` values, but `Val(true)` or `Val(false)` is preferred.
1182
1182
- `expression = false`: Generates a Julia `Expr`` computing the observed value if `expression` is true
1183
1183
- `eval_expression = false`: If true and `expression = false`, evaluates the returned function in the module `eval_module`
1184
1184
- `output_type = Array` the type of the array generated by a out-of-place vector-valued function
@@ -1228,7 +1228,7 @@ function build_explicit_observed_function(
1228
1228
output_type = Array,
1229
1229
checkbounds =true,
1230
1230
ps =parameters(sys; initial_parameters =true),
1231
-
return_inplace =false,
1231
+
return_inplace =Val(false),
1232
1232
param_only =false,
1233
1233
throw =true,
1234
1234
cse =true,
@@ -1320,10 +1320,6 @@ function build_explicit_observed_function(
1320
1320
SU.query(pred, x)
1321
1321
end
1322
1322
end
1323
-
extra_assignments = Assignment[]
1324
-
for var in pred.present_dervars
1325
-
push!(extra_assignments, var ← dervals[var])
1326
-
end
1327
1323
ts =substitute(ts, namespace_subs)
1328
1324
1329
1325
dvs =if param_only
@@ -1371,35 +1367,22 @@ function build_explicit_observed_function(
0 commit comments