diff --git a/src/BayesWave.c b/src/BayesWave.c index 4bf39867381eac34cf363eb8695024b44cf2980c..8447a8ea4a31185ebfe83bac61f2374743b42004 100644 --- a/src/BayesWave.c +++ b/src/BayesWave.c @@ -445,6 +445,23 @@ int main(int argc, char *argv[]) } fprintf(stdout,"\n"); } + else + { + /* + Here is an ugly hack: + BayesWavePost expects a psd for its IFO-cache argument. + The bayeswave_pipe script defaults to using the fairdraw output from BayesLine + + e.g. --[IFO]-cache interp:[rundir]/[IFO]_fairdraw_asd.dat + + which doesn't exist when running w/out BayesLine, e.g. simulated data for review + purposes. Here we print a file with the right name and content so that bayeswave_pipe + doesn't have to decide what to use for the cache argument. + + TODO: rethink naming to keep people out of trouble + */ + export_cleaned_data(data, model[0]); + } //Restore chain size to requested value chain->NC=NC; @@ -576,6 +593,7 @@ int main(int argc, char *argv[]) data->fullModelFlag = 0; } + if(data->cleanModelFlag) {