From f3e9013222aba5a55bb934137b8b5714b831bb8c Mon Sep 17 00:00:00 2001 From: Simon Date: Mon, 27 May 2024 13:47:48 +0200 Subject: [PATCH] fix #3887 and fix #3869 (unbound var in tuple conversion) (#3895) fix #3887 and fix #3869 --- src/conversions.jl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/conversions.jl b/src/conversions.jl index fb0491f780e..7b0812abf3d 100644 --- a/src/conversions.jl +++ b/src/conversions.jl @@ -71,7 +71,8 @@ function convert_arguments(::PointBased, x::Real, y::Real, z::Real) end function convert_arguments(::PointBased, position::VecTypes{N, T}) where {N, T <: Real} - return ([Point{N,float_type(T)}(position)],) + _T = @isdefined(T) ? T : Float64 + return ([Point{N,float_type(_T)}(position)],) end function convert_arguments(::PointBased, positions::AbstractVector{<: VecTypes{N, T}}) where {N, T <: Real} @@ -425,7 +426,7 @@ function convert_arguments(::VolumeLike, x::RangeLike, y::RangeLike, z::RangeLik data::RealArray{3}) return (to_interval(x, "x"), to_interval(y, "y"), to_interval(z, "z"), el32convert(data)) end - + """ convert_arguments(P, x, y, z, i)::(Vector, Vector, Vector, Matrix)