Commit 42923bd9 authored by John Douglas Veitch's avatar John Douglas Veitch

Merge branch 'fix_frame_globbing' into 'master'

LALInferenceReadData.c: Fix logic in frame globbing to detect errors

See merge request lscsoft/lalsuite!124
parents b490d522 cbdfa27f
Pipeline #32605 failed with stages
in 142 minutes and 56 seconds
......@@ -210,7 +210,7 @@ static LALCache *GlobFramesPWD(char *ifo)
fprintf(stderr,"(%s,%s,%s)\n",frGlobCache->list[i].src,frGlobCache->list[i].dsc,frGlobCache->list[i].url);
frInCache = XLALCacheDuplicate(frGlobCache);
XLALCacheSieve(frInCache, 0, 0, ifoRegExPattern, NULL, NULL);
if ( ! frGlobCache->length )
if ( ! frInCache->length )
{
fprintf( stderr, "error: no frame file files found after sieving\n");
exit( 1 );
......@@ -222,7 +222,7 @@ static LALCache *GlobFramesPWD(char *ifo)
fprintf(stderr,"(%s,%s,%s)\n",frInCache->list[i].src,frInCache->list[i].dsc,frInCache->list[i].url);
}
return(frGlobCache);
return(frInCache);
}
static REAL8TimeSeries *readTseries(LALCache *cache, CHAR *channel, LIGOTimeGPS start, REAL8 length)
......
Markdown is supported
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