From 68fac7841f9d97d7faa57875a3ae0d5406f5cc3c Mon Sep 17 00:00:00 2001 From: "C. Brenhin Keller" Date: Sun, 9 Jun 2024 22:11:34 -0400 Subject: [PATCH] Avoid method redefinition in plotting extensions, to allow precompilaiton --- Project.toml | 2 +- src/generic_plotting.jl | 17 +++++++++++------ 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/Project.toml b/Project.toml index 9681220..8639dd9 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "Isoplot" uuid = "5adc30d5-9ddf-423c-bb15-ece697bec3ab" authors = ["C. Brenhin Keller "] -version = "0.3.3" +version = "0.3.4" [deps] Distributions = "31c24e10-a181-5473-b8eb-7969acd0382f" diff --git a/src/generic_plotting.jl b/src/generic_plotting.jl index 2b6937d..57a774a 100644 --- a/src/generic_plotting.jl +++ b/src/generic_plotting.jl @@ -1,11 +1,16 @@ -function concordiacurve() end +# Establish our plotting functions with dummy methods that will never be used +# (using zero-arg methods for this isn't sufficient since concordialine +# and concordialine! may have real zero-arg methods) +struct NotUsed end -function concordiacurve!() end +function concordiacurve(x::NotUsed) end -function concordialine() end +function concordiacurve!(x::NotUsed) end -function concordialine!() end +function concordialine(x::NotUsed) end -function rankorder() end +function concordialine!(x::NotUsed) end -function rankorder!() end \ No newline at end of file +function rankorder(x::NotUsed) end + +function rankorder!(x::NotUsed) end \ No newline at end of file