Skip to content

Commit 1c01efd

Browse files
chore: mark only bitstype arrays as scimlstructure
1 parent fbeb106 commit 1c01efd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/array.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ canonicalize(::Constants, p::AbstractArray) = nothing, nothing, nothing
2020
canonicalize(::Caches, p::AbstractArray) = nothing, nothing, nothing
2121
canonicalize(::Discrete, p::AbstractArray) = nothing, nothing, nothing
2222

23-
isscimlstructure(::AbstractArray) = true
23+
isscimlstructure(::AbstractArray) = false
24+
isscimlstructure(::AbstractArray{<:Number}) = true
2425

2526
function SciMLStructures.replace(
2627
::SciMLStructures.Tunable, arr::AbstractArray, new_arr::AbstractArray)

0 commit comments

Comments
 (0)