Skip to content

Commit

Permalink
fix #3887 and fix #3869 (unbound var in tuple conversion) (#3895)
Browse files Browse the repository at this point in the history
fix #3887 and fix #3869
  • Loading branch information
SimonDanisch authored May 27, 2024
1 parent cadb1fe commit f3e9013
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/conversions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit f3e9013

Please sign in to comment.