Changelog
Source:NEWS.md
PEcAn.DB 1.8.2
Fixed
arrhenius.scaling.traits(): previously returnedNULLwhen no temperature covariates were found, crashingquery.trait.data()withargument is of length zero. The function now drops rows that lack a measurement temperature covariate and emits alogger.warn()with the row count. If no observations have any temperature covariate, an empty data frame (zero rows, same columns) is returned. Themissing.tempargument is retained for backward compatibility but is no longer applied.filter_sunleaf_traits(): returnedNULLinstead ofdataunchanged when nocanopy_layercovariate was found. Now returns the input data frame unmodified in that case, consistent with the more standardised measurement protocol for sun-leaf traits.query.trait.data(): thewarning()call for missing trait data was placed afterreturn(NA)and therefore never fired. Moved before the return and changed tologger.warn()for consistency with the rest of the codebase.Refactored
convert.input()internals into smaller, and hopefully more testable, chunks. No user-visible changes expected.Roxygen cleanup.
PEcAn.DB 1.8.1
PEcAn.DB 1.8.0
Added
- New functions
stamp_startedandstamp_finished, used to record the start and end time of model runs in the database. Both used to live inPEcAn.remoteand were moved to resolve a circular dependency. - New function
convert_input, used to convert between formats while reusing existing files where possible. It previously lived in packagePEcAn.utils, but was moved here to simplify dependencies. (#3026; @nanu1605) -
get.trait.datagains new argumentwrite(with default FALSE), passed on toget.trait.data.pft(@Aariq, #3065).
PEcAn.DB 1.7.1
- All changes in 1.7.1 and earlier were recorded in a single file for all of the PEcAn packages; please see https://github.com/PecanProject/pecan/blob/v1.7.1/CHANGELOG.md for details.