Skip to content

Commit

Permalink
bug(faux): wrong type name
Browse files Browse the repository at this point in the history
  • Loading branch information
tpoisot committed Oct 6, 2024
1 parent 5723bc8 commit 9c8d90f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Fauxcurrences/src/coordinates.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
get_valid_coordinates(observations::R, layer::T) where {R <: AbstractOccurrencesCollection, T <: SDMLayer}
get_valid_coordinates(observations::R, layer::T) where {R <: AbstractOccurrenceCollection, T <: SDMLayer}
Get the coordinates for a list of observations, filtering the ones that do not
correspond to valid layer positions. Valid layer positions are defined as
Expand All @@ -8,7 +8,7 @@ falling within a valued pixel from the layer.
function get_valid_coordinates(
observations::R,
layer::T,
) where {R <: AbstractOccurrencesCollection, T <: SDMLayer}
) where {R <: AbstractOccurrenceCollection, T <: SDMLayer}
xy = place(observations)
filter!(c -> !ismissing(c), xy) # Only the non-missing observations
filter!(c -> !isnothing(layer[c...]), xy) # Only the observations in the layer
Expand Down

0 comments on commit 9c8d90f

Please sign in to comment.