Performance warning creating DiscreteProblem
with mixed-type parameter Tuple
#2366
Labels
bug
Something isn't working
DiscreteProblem
with mixed-type parameter Tuple
#2366
I recently started getting warnings of the form
when using JumpProcesses.jl with
Tuple
parameter maps of mixed value types.It can be reproduced with the repressilator example from the Catalyst introduction:
The last line warns as described above. I believe this is because
dprob.p isa Vector{Union{Float64, Int64}}
.DiscreteProblem
above dispatches towhich just transforms
u₀map
andpmap
withsymmap_to_varmap
and then callshere. The mixed-
eltype
Vector
is created byvarmap_to_vars
called here, effectively viaand I believe the problem is the line
container_type = Array
. I thinkvarmap_to_vars
should return e.g. aTuple
in this case, but the comment above seems to indicate otherwise.Am I using this incorrectly?
Environment:
Julia v1.9.4
The text was updated successfully, but these errors were encountered: