Skip to content

Commit

Permalink
fix for Catalyst.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
Brad Carman committed Sep 14, 2023
1 parent 05c6579 commit 6acee61
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -650,6 +650,11 @@ function promote_to_concrete(vs; tofloat = true, use_union = true)
if isempty(vs)
return vs
end
if vs isa Tuple #special rule, if vs is a Tuple, preserve types, container converted to Array
tofloat = false
use_union = true
vs = Any[vs...]
end
T = eltype(vs)
if Base.isconcretetype(T) && (!tofloat || T === float(T)) # nothing to do
vs
Expand Down

0 comments on commit 6acee61

Please sign in to comment.