From 7ce30415ada99f1bf9e91247987d265edda17343 Mon Sep 17 00:00:00 2001 From: Tyson Littenberg <tyson.littenberg@ligo.org> Date: Tue, 14 May 2019 14:19:29 -0500 Subject: [PATCH] output 'fairdraw' psds in absence of bayesline --- src/BayesWave.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/BayesWave.c b/src/BayesWave.c index 4bf39867..8447a8ea 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) { -- GitLab