- #Now series must be retrieved from synchrones_file, and have no ID
- getSeries = function(indices, ids) getDataInFile(indices, synchrones_file)
+ getSeriesForSynchrones = getSeries
+ synchrones_file = paste(bin_dir,"synchrones",sep="")
+ if (WER=="mix")
+ {
+ indices = seq_len(ntasks*K2)
+ #Now series must be retrieved from synchrones_file
+ getSeries = function(inds) getDataInFile(inds, synchrones_file)
+ #Coefs must be re-computed
+ unlink(coefs_file)
+ index = 1
+ repeat
+ {
+ series = getSeries((index-1)+seq_len(nb_series_per_chunk))
+ if (is.null(series))
+ break
+ coeffs_chunk = curvesToCoeffs(series, wf)
+ serialize(coeffs_chunk, coefs_file)
+ index = index + nb_series_per_chunk
+ }
+ }