EarthSystemDiagnostics / cpt-picarr

MIT License
1 stars 0 forks source link

Strip off names of processed datasets (after piccr update) #69

Closed thomas-muench closed 4 years ago

thomas-muench commented 4 years ago

When processing data with piccr, cpt-picarr expects the list with the result of a single processed data set to have no name, since otherwise, the unlist call would result in list element names of the format ., instead of just (see helpers_processDataWithPiccr.R, ll. 38-39).

When piccr commit 738c502 is merged into dev, we need to account for the then present dataset names in the list output of piccr::processData(); for this, l.38 in helpers_processDataWithPiccr.R (function processSingleDataset()),

processedData <- piccr::processData(data, config)

needs to be replaced with

processedData <- stats::setNames(piccr::processData(data, config), NULL).