From a94334a9b55ee8c52413915f34a78b6e3d17de27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9e=20Poisot?= Date: Mon, 16 Oct 2023 13:16:42 -0400 Subject: [PATCH 1/2] bug(layers): remove the extra declaration for Base.:! Closes Fauxcurrence overload issue #214 --- SimpleSDMLayers/src/lib/overloads.jl | 6 ------ 1 file changed, 6 deletions(-) diff --git a/SimpleSDMLayers/src/lib/overloads.jl b/SimpleSDMLayers/src/lib/overloads.jl index 4c5a785bb..662f77d5f 100644 --- a/SimpleSDMLayers/src/lib/overloads.jl +++ b/SimpleSDMLayers/src/lib/overloads.jl @@ -338,12 +338,6 @@ Base.:%(layer::T, n::Number) where {T <: SimpleSDMLayer} = broadcast(x -> x % n, Base.:-(layer::T) where {T <: SimpleSDMLayer} = broadcast(-, layer) Base.:!(layer::T) where {T <: SimpleSDMLayer} = broadcast(!, layer) -function Base.:!(layer::T) where {T <: SimpleSDMLayer} - ngrid = (!).(SimpleSDMLayers.grid(layer)) - RT = T <: SimpleSDMResponse ? SimpleSDMResponse : SimpleSDMPredictor - return RT(ngrid, layer.left, layer.right, layer.bottom, layer.top) -end - function Base.findmax(layer::T) where {T <: SimpleSDMLayer} val, pos = findmax(values(layer)) return (val, keys(layer)[pos]) From 688ea1a2f94aff88a5d92f67cbaaac7e7375bac5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9e=20Poisot?= Date: Mon, 16 Oct 2023 13:17:05 -0400 Subject: [PATCH 2/2] semver(layers): v0.9.5 --- SimpleSDMLayers/Project.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SimpleSDMLayers/Project.toml b/SimpleSDMLayers/Project.toml index 7c906a898..312001d4b 100644 --- a/SimpleSDMLayers/Project.toml +++ b/SimpleSDMLayers/Project.toml @@ -1,7 +1,7 @@ name = "SimpleSDMLayers" uuid = "2c645270-77db-11e9-22c3-0f302a89c64c" authors = ["Timothée Poisot ", "Gabriel Dansereau "] -version = "0.9.4" +version = "0.9.5" [deps] Distances = "b4f34e82-e78d-54a5-968a-f98e89d6e8f7"