PoisotLab / BiodiversityObservationNetworks.jl

Methods for optimizing the spatial location of biodiversity-observation-networks
https://poisotlab.github.io/BiodiversityObservationNetworks.jl/dev/
MIT License
2 stars 0 forks source link

:bug: overloads of `seed` and `refine` for `SDMLayers` #28

Closed gottacatchenall closed 1 month ago

gottacatchenall commented 1 year ago
bbox = (left=-83.0, bottom=46.4, right=-55.2, top=63.7);
h = convert(Float32, SimpleSDMPredictor(WorldClim, BioClim, 7; bbox...))
h |> seed(BalancedAcceptance)

fails with

ERROR: MethodError: no method matching seed!(::Vector{CartesianIndex}, ::BalancedAcceptance{Int64, Float64}, ::SimpleSDMResponse{Float32})
Closest candidates are:
  seed!(::Vector{CartesianIndex}, ::ST) where ST<:BONSeeder at ~/.julia/packages/BiodiversityObservationNetworks/IR0dX/src/seed.jl:30
  seed!(::Vector{CartesianIndex}, ::ST, ::Matrix{T}) where {ST<:BONSeeder, T<:AbstractFloat} at ~/.julia/packages/BiodiversityObservationNetworks/IR0dX/src/seed.jl:9
gottacatchenall commented 1 month ago

api has changed enough that this is not relevant