sizespectrum / mizer

Multi-species size-based ecological modelling in R
https://sizespectrum.org/mizer
38 stars 43 forks source link

Changing `w_max` should also change `ft_mask` #296

Closed gustavdelius closed 1 month ago

gustavdelius commented 1 month ago

The ft_mask is used when calculating predation rates using the Fourier transform method and is supposed to mask out any contributions outside the fish size range, i.e., anything larger than w_max. Currently ft_mask is only set when a MizerParams object is created by emptyParams() and is then never changed, even when the user changes the w_max species parameter.