From c7af875d1bd51cde2f4851aae8e82908d04d500d Mon Sep 17 00:00:00 2001 From: Gabriel Dansereau Date: Thu, 13 May 2021 15:09:59 -0400 Subject: [PATCH 1/3] =?UTF-8?q?=F0=9F=94=A7=20remove=20compat=20entries=20?= =?UTF-8?q?for=20ArchGDAL=20prior=20to=20v0.6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I tested ArchGDAL v0.4 and v0.5 (locally) and they are not compatible with the latest features. v0.4 failed multiple times including with SimpleSDMPredictor(WorldClim, BioClim, 1). v0.5 failed with the CHELSA future scenarios, at least. --- Project.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Project.toml b/Project.toml index 60433615..4c0bab87 100644 --- a/Project.toml +++ b/Project.toml @@ -12,7 +12,7 @@ Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2" ZipFile = "a5390f91-8eb1-5f08-bee0-b1d1ffed6cea" [compat] -ArchGDAL = "0.4, 0.5, 0.6" +ArchGDAL = "0.6" Downloads = "1.4" RecipesBase = "0.7, 0.8, 1.0" Requires = "1.0" From 9ca3c86d3d1085d61eff67408b54bffadfea5ff0 Mon Sep 17 00:00:00 2001 From: Gabriel Dansereau Date: Thu, 13 May 2021 15:37:11 -0400 Subject: [PATCH 2/3] =?UTF-8?q?=E2=9C=85=20add=20test=20for=20density=20&?= =?UTF-8?q?=20StatsPlots?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/Project.toml | 1 + test/plots.jl | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/test/Project.toml b/test/Project.toml index 3bd386f8..3efaa6bd 100644 --- a/test/Project.toml +++ b/test/Project.toml @@ -3,6 +3,7 @@ DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0" GBIF = "ee291a33-5a6c-5552-a3c8-0f29a1181037" Plots = "91a5bcdd-55d7-5caf-9e0b-520d859cae80" Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2" +StatsPlots = "f3b207a7-027a-5e70-b257-86293d7955fd" Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" [compat] diff --git a/test/plots.jl b/test/plots.jl index 69a3f0f1..3644a50d 100644 --- a/test/plots.jl +++ b/test/plots.jl @@ -2,6 +2,7 @@ module SSLTestPlots using SimpleSDMLayers using Test using Plots +using StatsPlots temperature, precipitation = SimpleSDMPredictor(WorldClim, BioClim, [1,12]) @@ -65,6 +66,10 @@ savefig(joinpath("gallery", "heatmap_scaledown.png")) histogram(precipitation, leg=false) xaxis!("Precipitation") +savefig(joinpath("gallery", "histogram.png")) + +density(precipitation, leg=false) +xaxis!("Precipitation") savefig(joinpath("gallery", "density.png")) plot(temperature, precipitation, leg=false, c=:grey, msc=:grey, alpha=0.5) From 3effae5d82bf95120e469f5f38d2a86df3a58faf Mon Sep 17 00:00:00 2001 From: Gabriel Dansereau Date: Thu, 13 May 2021 20:30:45 -0400 Subject: [PATCH 3/3] =?UTF-8?q?=F0=9F=8E=A8=20replace=20terrain=20color=20?= =?UTF-8?q?in=20test=20by=20heat?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit terrain caused problems with versions prior to Plots v1.1.0, which are compatible otherwise --- test/plots.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/plots.jl b/test/plots.jl index 3644a50d..a0779bd4 100644 --- a/test/plots.jl +++ b/test/plots.jl @@ -37,7 +37,7 @@ for (i,e) in enumerate(lc1.grid) n_lc1[i] = isnothing(e) ? NaN : Float32(e) end lc1 = SimpleSDMPredictor(n_lc1, lc1) -plot(lc1, c=:terrain, title="Landcover class 1", frame=:box, +plot(lc1, c=:heat, title="Landcover class 1", frame=:box, xlabel = "Longitude", ylabel= "Latitude") savefig(joinpath("gallery", "range-comparison-landcover.png"))