Set and document default for exponents in set...()
functions
#271
Labels
code improvement
This issue relates to code quality rather than user-facing features
documentation
Issue relates to documentation
low priority
minor effort
Resolving this issue will involve a minor effort
setting parameters
Issue relates to the part of mizer used for setting up MizerParams objects.
setSearchVolume()
assumes that the search volume exponentq
is given in thespecies_params
data frame. This usually creates no problems because a value is set in thenew....Params()
functions. But that is not enough.validSpeciesParams()
neither sets a default nor complains ifq
is missing. If one then callssetSearchVolume()
with a supposedly valid species params data frame one gets a cryptic error. The straightforward solution is to letsetSearchVolume()
use a default value ifq
is missing. This default should belambda - 2 + n
The exact same comment applies to
setMaxIntakeRate()
and the exponentn
and also tosetMetabolicRate()
and the exponentp
except that in the latter case surprisinglyp
can be supplied as an argument.The text was updated successfully, but these errors were encountered: