Skip to content

v1.0#85

Open
gottacatchenall wants to merge 16 commits intomainfrom
refactor
Open

v1.0#85
gottacatchenall wants to merge 16 commits intomainfrom
refactor

Conversation

@gottacatchenall
Copy link
Copy Markdown
Member

@gottacatchenall gottacatchenall commented Apr 9, 2026

Included in this refactor are:

  • a more comprehensive set of documentation
  • a refactor to reduce coupling by mapping input domains to a new CandidatePool type, which samplers act directly on
  • moving SpeciesDistributionToolkit compatibility to an extension

return
end
function _apply_sdm_mask!(valid::BitMatrix, layer::SDMLayer, mask::SDMLayer)
SimpleSDMLayers._layers_are_compatible(layer, mask) || throw(ArgumentError("Layer and mask are not compatible. Ensure size, extent, and CRS match."))
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

_layers_are_compatible will throw errors with the exact problem now, so you don't need the || throw(...

Copy link
Copy Markdown
Member

@tpoisot tpoisot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One small note

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants