forsys-sp / forsysr

An R implementation of the ForSys program
GNU General Public License v3.0
8 stars 3 forks source link

Allow patchmax to run without threshold #66

Closed michelledayusfs closed 1 year ago

michelledayusfs commented 2 years ago

The ForSys function that calls patchmax assumes a threshold. Add code to allow for a null threshold value.

codyevers commented 2 years ago

This should be fixed by new code around ~L290-294 (copied below)

# extract values of stand field used for defining availability
St_threshold_values <- NULL
if(!is.null(stand_threshold)){
  St_threshold_values <- stands_available %>% dplyr::pull(!!threshold_field)
}
michelledayusfs commented 1 year ago

Just tested this and it is no longer an issue.