diff --git a/gstlal-calibration/gst/lal/gstlal_transferfunction.c b/gstlal-calibration/gst/lal/gstlal_transferfunction.c index bf6ee0c5f3e3f5383c6f4128f9f40cb58df29ef3..40cd293c21ccf1171c98be967466b7ba8a0f1bd2 100644 --- a/gstlal-calibration/gst/lal/gstlal_transferfunction.c +++ b/gstlal-calibration/gst/lal/gstlal_transferfunction.c @@ -450,7 +450,7 @@ static gboolean update_transfer_functions_ ## DTYPE(complex DTYPE *autocorrelati /* Now copy the result into transfer_functions */ \ for(j = 0; j < num_tfs; j++) { \ gslz = gsl_vector_complex_get(transfer_functions_solved_at_f, j); \ - if(isnormal(GSL_REAL(gslz)) || GSL_REAL(gslz) == 0.0) \ + if(isnormal((GSL_REAL(gslz) + GSL_IMAG(gslz))) || GSL_REAL(gslz) + GSL_IMAG(gslz) == 0.0) \ transfer_functions[j * fd_tf_length + i] = GSL_REAL(gslz) + I * GSL_IMAG(gslz); \ else { \ success = FALSE; \ @@ -571,7 +571,7 @@ static gboolean find_transfer_functions_ ## DTYPE(GSTLALTransferFunction *elemen \ /* Check the FFTs to see if their values will produce usable transfer functions */ \ for(j = 0; j < fd_fft_length * element->channels; j++) \ - success &= isnormal(creal ## F_OR_BLANK(element->workspace.w ## S_OR_D ## pf.ffts[j])); \ + success &= isnormal(cabs ## F_OR_BLANK(element->workspace.w ## S_OR_D ## pf.ffts[j])); \ \ if(success && element->use_median) { \ /* @@ -695,7 +695,7 @@ static gboolean find_transfer_functions_ ## DTYPE(GSTLALTransferFunction *elemen \ /* Check the FFTs to see if their values will produce usable transfer functions */ \ for(j = 0; j < fd_fft_length * element->channels; j++) \ - success &= isnormal(creal ## F_OR_BLANK(element->workspace.w ## S_OR_D ## pf.ffts[j])); \ + success &= isnormal(cabs ## F_OR_BLANK(element->workspace.w ## S_OR_D ## pf.ffts[j])); \ \ if(success && element->use_median) { \ /* diff --git a/gstlal-calibration/tests/check_calibration/Makefile b/gstlal-calibration/tests/check_calibration/Makefile index 655fa48569eb993d05622b21578c120adcbe235d..3a852a938e78e9ac598f4214596b01d9f0306aa1 100644 --- a/gstlal-calibration/tests/check_calibration/Makefile +++ b/gstlal-calibration/tests/check_calibration/Makefile @@ -21,7 +21,7 @@ SHMRUNTIME = 400 PLOT_WARMUP_TIME = 200 PLOT_COOLDOWN_TIME = 200 -GDSCONFIGS = Filters/ER14/GDSFilters/L1GDS_1234630818.ini +GDSCONFIGS = Filters/ER14/GDSFilters/L1GDS_1234630818_test.ini DCSCONFIGS = Filters/ER13/GDSFilters/L1DCS_TEST_1231620000.ini #../../config_files/O2/H1/tests/H1DCS_AllCorrections_Cleaning.ini DCSFCCCONFIGS = ../../config_files/O2/H1/tests/H1DCS_FreqIndepAndFccCorrections_Cleaning.ini