I made the same changes that were in the previous pull request. Added suitability helper functions, changed make.gadget.printfile to work with stocks that are not consumed (previously it had printed predatorpreyprinter files for stocks not eaten which resulted in an error). I also added a recruitment length parameter to get.gadget.growth so that this function would include that parameter when calculating age.based growth.
Conveniently, I did not have to change anything in gadget.fit besides adding the associated rec. length parameter for get.gadget.growth. The changes you made took care of the previous issue that I was trying to fix in gadget.fit.
I made the same changes that were in the previous pull request. Added suitability helper functions, changed
make.gadget.printfile
to work with stocks that are not consumed (previously it had printedpredatorpreyprinter
files for stocks not eaten which resulted in an error). I also added a recruitment length parameter toget.gadget.growth
so that this function would include that parameter when calculating age.based growth.Conveniently, I did not have to change anything in
gadget.fit
besides adding the associated rec. length parameter forget.gadget.growth
. The changes you made took care of the previous issue that I was trying to fix ingadget.fit
.