aphalo / photobiology

Package ‘photobiology’ defines a system of classes for storing spectral data and accompanying methods and operators. This is the core of a suite of R packages for photobiological calculations.
4 stars 1 forks source link

Add example data to make possible additional unit tests #24

Open aphalo opened 6 months ago

aphalo commented 6 months ago

The current version of the 'photobiology' package has extensive support for operations on multiple spectra stored in long-form _spct objects, but is still missing example data usable in unit tests for these operations. To some extent this also affects collections of spectra. The tests could be implemented using artificial data created on-the-fly but for the documentation, some examples would be also needed. We could assemble these from individual spectra at load time, but then they would not be a reliable reference for unit tests. For these tests to be exhaustive, the spectra should contain all the metadata attributes currently implemented.

aphalo commented 6 months ago

Need to think how not to bloat the package, and add only the strictly needed data sets. Push forward to next milestone.