diff --git a/src/utils.jl b/src/utils.jl index 31001f7c5..8c9f5cb43 100644 --- a/src/utils.jl +++ b/src/utils.jl @@ -88,7 +88,7 @@ function modify end modify(f, s::AbstractDimStack) = maplayers(a -> modify(f, a), s) # Stack optimisation to avoid compilation to build all the `AbstractDimArray` # layers, and instead just modify the parent data directly. -modify(f, s::AbstractDimStack{<:Any,<:NamedTuple}) = +modify(f, s::AbstractDimStack{<:Any,<:Any,<:NamedTuple}) = rebuild(s; data=map(a -> modify(f, a), parent(s))) function modify(f, A::AbstractDimArray) newdata = f(parent(A))