Skip to content

Commit

Permalink
remove leftover, dublicate conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
ffreyer committed Aug 9, 2023
1 parent eb4e05c commit 6cdcf7c
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions src/conversions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ end


################################################################################
# SurfaceLike #
# GridBased #
################################################################################

function edges(v::AbstractVector)
Expand Down Expand Up @@ -636,21 +636,6 @@ function convert_arguments(::VolumeLike, x::AbstractVector, y::AbstractVector, z
return (x, y, z, el32convert.(f.(_x, _y, _z)))
end

"""
convert_arguments(P, x, y, f)::(Vector, Vector, Matrix)
Takes vectors `x` and `y` and the function `f`, and applies `f` on the grid that `x` and `y` span.
This is equivalent to `f.(x, y')`.
`P` is the plot Type (it is optional).
"""
function convert_arguments(sl::SurfaceLike, x::AbstractVector{T1}, y::AbstractVector{T2},
f::Function) where {T1,T2}
if !applicable(f, x[1], y[1])
error("You need to pass a function with signature f(x::$T1, y::$T2). Found: $f")
end
return convert_arguments(sl, x, y, f.(x, y'))
end

function convert_arguments(P::PlotFunc, r::AbstractVector, f::Function)
return convert_arguments(P, r, map(f, r))
end
Expand Down

0 comments on commit 6cdcf7c

Please sign in to comment.