This is a patch release with many small fixes and improvements since the v2.5.0 release.
validSpeciesParams()
has extra checks on consistency of species parameters.validParams()
checks that rate arrays contain finite numeric values.validSim()
checks that simulation results are finite and truncates the
simulation if they are not.- Fixed bug that had led
newCommunityParams()
to set up resource parameters
differently since version 2.4.0 (#293). addSpecies()
now correctly preserves allspecies_params
of the existing
model.addSpecies()
no longer requires new species to grow to maximum size, only
maturity size is required.- Now
validGivenSpeciesParams()
validates the given species parameters without
adding defaults andvalidSpeciesParams()
validates and returns a completed
species parameter dataframe. - New species parameter
w_repro_max
giving the size at which a species
invests 100% of its energy into reproduction. Set tow_max
by default. removeSpecies()
now also removes species parameters that are NA for
all of the remaining species.- Changing
w_max
now also correctly updatesft_mask
(#296). compareParams()
now also spells out differences in given species parameters.getDiet()
now also includes the contribution of the external encounter rate
to the diet.setPredKernel()
now throws an error if some of the required predation kernel
parameters are NA.- In
plotYieldGear()
one can select a subset of gears with a newgears
argument. - New helper function
valid_gears_arg()
to check thegears
argument in
functions that take agears
argument. - Improved scaling of the y-axis in
plotGrowthCurves()
. steadySingleSpecies()
no longer requires species to grow tow_max
.matchGrowth()
now also rescales the external encounter rate.setExtEncounter()
no longer resets the external encounter rate to zero when
called without theext_encounter
argument.- The function
plotBiomassObservedVsModel()
now plots the ratio of modelled
to observed biomass as default (ratio = TRUE
). - The
time_modified
field is now updated correctly bysteadySingleSpecies()
,
setColours()
andsetLinetypes()
. - Deprecated
matchYields()
andcalibrateYield()
. project()
andprojectToSteady(..., return_sim = TRUE)
now correctly
returns also the other components of the MizerSim object stored inn_other
.
#285- Improved some unit tests.
- Some improvements to documentation.