diff --git a/src/variables.jl b/src/variables.jl index c5d9c2e8be1e63e342e5bf269c1bd78077efd037..2f4ce7c8d2d6f038d18fba6fa572c3ec07b69fa7 100644 --- a/src/variables.jl +++ b/src/variables.jl @@ -343,7 +343,7 @@ end function (var::AlternateVariable)(args...; kwargs...) other_var = variables[var.other_var] apply_from_other(res::VariableType) = var.from_other(res) - apply_from_other(res::AbstractArray{<:VariableType}) = var.from_other.(res) + apply_from_other(res::AbstractVector{<:VariableType}) = var.from_other(res) apply_from_other(res::NamedTuple) = NamedTuple(k => apply_from_other(v) for (k, v) in pairs(res)) return apply_from_other(other_var(args...; kwargs...)) end