Skip to content
Snippets Groups Projects

Add offset to window placement. Correct BayesWavePost time array samples

Merged Sudarshan Ghonge requested to merge sudarshan-ghonge/bayeswave:asymmetric-window into master
2 files
+ 8
3
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 4
2
@@ -588,13 +588,15 @@ void reset_priors(struct Data *data, struct Prior *prior)
double fmax = data->fmax;
double betamin = -1.0;
double betamax = 1.0;
double offset;
//restrict prior range for wavelet time to 1 second around trigger
if(data->runPhase==1)
{
tmin = data->Tobs/2.0-data->Twin/2.0;
tmax = data->Tobs/2.0+data->Twin/2.0;
offset = data->trigtime - (data->starttime + data->Tobs/2.0);
tmin = data->Tobs/2.0-data->Twin/2.0 + offset;
tmax = data->Tobs/2.0+data->Twin/2.0 + offset;
}
/*
if(data->amplitudePriorFlag)
Loading