Skip to content

Commit a2db412

Browse files
Merge pull request #3367 from AayushSabharwal/as/no-destructure
refactor: default `create_bindings` to false in `build_function_wrapper`
2 parents 3a0784a + c352c09 commit a2db412

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

Project.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,8 @@ StaticArrays = "0.10, 0.11, 0.12, 1.0"
146146
StochasticDiffEq = "6.72.1"
147147
StochasticDelayDiffEq = "1.8.1"
148148
SymbolicIndexingInterface = "0.3.37"
149-
SymbolicUtils = "3.10.1"
150-
Symbolics = "6.27"
149+
SymbolicUtils = "3.14"
150+
Symbolics = "6.29"
151151
URIs = "1"
152152
UnPack = "0.1, 1.0"
153153
Unitful = "1.1"

docs/src/systems/DiscreteSystem.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,20 @@
66
DiscreteSystem
77
```
88

9-
## Composition and Accessor Functions
10-
11-
- `get_eqs(sys)` or `equations(sys)`: The equations that define the discrete system.
12-
- `get_unknowns(sys)` or `unknowns(sys)`: The set of unknowns in the discrete system.
13-
- `get_ps(sys)` or `parameters(sys)`: The parameters of the discrete system.
14-
- `get_iv(sys)`: The independent variable of the discrete system
15-
- `discrete_events(sys)`: The set of discrete events in the discrete system.
16-
9+
## Composition and Accessor Functions
10+
11+
- `get_eqs(sys)` or `equations(sys)`: The equations that define the discrete system.
12+
- `get_unknowns(sys)` or `unknowns(sys)`: The set of unknowns in the discrete system.
13+
- `get_ps(sys)` or `parameters(sys)`: The parameters of the discrete system.
14+
- `get_iv(sys)`: The independent variable of the discrete system
15+
- `discrete_events(sys)`: The set of discrete events in the discrete system.
16+
1717
## Transformations
1818

1919
```@docs; canonical=false
2020
structural_simplify
2121
```
22-
22+
2323
## Problem Constructors
2424

2525
```@docs; canonical=false

src/systems/codegen_utils.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ function build_function_wrapper(sys::AbstractSystem, expr, args...; p_start = 2,
121121
p_end = is_time_dependent(sys) ? length(args) - 1 : length(args),
122122
wrap_delays = is_dde(sys), wrap_code = identity,
123123
add_observed = true, filter_observed = Returns(true),
124-
create_bindings = true, output_type = nothing, mkarray = nothing,
124+
create_bindings = false, output_type = nothing, mkarray = nothing,
125125
wrap_mtkparameters = true, extra_assignments = Assignment[], kwargs...)
126126
isscalar = !(expr isa AbstractArray || symbolic_type(expr) == ArraySymbolic())
127127
# filter observed equations

0 commit comments

Comments
 (0)