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

Unit tests for `pull_sample()` and `subset()` and `[ ]` #18

Open aphalo opened 1 year ago

aphalo commented 1 year ago

Adding these tests makes it neccessary to add example data for multiple spectra in long form and collections of spectra for all classes derived from "generic.spct" and from "generic.mspct". Current code was tested manually during development of these new functions.

aphalo commented 10 months ago

I removed the functions sample_spct() and sample_mspct() and replaced them with pull_sample().

aphalo commented 9 months ago

Unit tests for extracting and subsetting of spectra stored in long form need to be added. The missing tests are for those cases when metadata attributes need to be subset as part of these operations. I implemented the subsetting of attributes in 0.11.0.9000.

Tasks: Add unit tests for data and metadata of multiple spectra stored in long form in objects of classes

aphalo commented 7 months ago

These functions are so crucial for performance, that unit tests, to be run only locally, to check for performance degradation are needed.

aphalo commented 6 months ago

Push to next milestone for completion.