Commit c50d9e9a authored by Jonah Kanner's avatar Jonah Kanner 🤓
Browse files

Patch for snr bug

git-svn-id: https://svn.ligo.caltech.edu/svn/bayeswave/tags/bwb-0.4@371 c56465c9-8126-4a4f-9d7d-ac845eff4865
parent 9ec16b50
......@@ -711,7 +711,7 @@ int main(int argc, char *argv[])
dataPtr = runState->data;
while(dataPtr!=NULL)
{
for(i=0; i<N/2; i++) dataPtr->oneSidedNoisePowerSpectrum->data->data[i] = psd[ifo][i]*2.0/Tobs;
for(i=0; i<N/2; i++) dataPtr->oneSidedNoisePowerSpectrum->data->data[i] = 2.0/Tobs/data->invSnf[ifo][i];
dataPtr = dataPtr->next;
ifo++;
}
......@@ -731,7 +731,7 @@ int main(int argc, char *argv[])
while(dataPtr!=NULL)
{
// Fill runState PSD with results from BayesLine
for(i=0; i<N/2; i++) dataPtr->oneSidedNoisePowerSpectrum->data->data[i] = psd[ifo][i]*2.0/Tobs;
for(i=0; i<N/2; i++) dataPtr->oneSidedNoisePowerSpectrum->data->data[i] = 2.0/Tobs/data->invSnf[ifo][i];
dataPtr = dataPtr->next;
ifo++;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment