Skip to content

Commit 7b8eae1

Browse files
committed
fix
1 parent c4be161 commit 7b8eae1

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/systems/callbacks.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -903,7 +903,6 @@ function continuous_events(sys::AbstractSystem)
903903
reduce(vcat,
904904
(map(o -> namespace_callback(o, s), continuous_events(s)) for s in systems),
905905
init = SymbolicContinuousCallback[])]
906-
@show cbs
907906
filter(!isempty, cbs)
908907
end
909908

src/systems/problem_utils.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ Keyword arguments:
346346
function better_varmap_to_vars(varmap::AbstractDict, vars::Vector;
347347
tofloat = true, use_union = true, container_type = Array,
348348
toterm = default_toterm, promotetoconcrete = nothing, check = true, allow_symbolic = false)
349-
isempty(vars) && return Float64[]
349+
isempty(vars) && return nothing
350350

351351
if check
352352
missing_vars = missingvars(varmap, vars; toterm)
@@ -366,7 +366,7 @@ function better_varmap_to_vars(varmap::AbstractDict, vars::Vector;
366366

367367
promotetoconcrete === nothing && (promotetoconcrete = container_type <: AbstractArray)
368368
if promotetoconcrete && !allow_symbolic
369-
vals = promote_to_concrete(vals; tofloat = tofloat, use_union = use_union)
369+
vals = promote_to_concrete(vals; tofloat, use_union)
370370
end
371371

372372
if container_type <: Tuple

0 commit comments

Comments
 (0)