Commit dc44494e authored by Reinhard Prix's avatar Reinhard Prix
Browse files

HierarchSearchGCT: small fix in handling of 2-column segment-lists

- if 2-column segment list given, don't try to check number of SFTs loaded
- refs #1531
Original: d8af524e92563414f1027e521298de7ed6e985d0
parent d73c5cf5
......@@ -2102,7 +2102,7 @@ void SetUpSFTs( LALStatus *status, /**< pointer to LALStatus structure */
if ( in->segmentList ) {
/* check the number of SFTs we found in this segment against the nominal value, stored in the segment list field 'id' */
UINT4 nSFTsExpected = in->segmentList->segs[k].id;
if ( nSFTsInSeg != nSFTsExpected ) {
if ( (nSFTsExpected > 0) && (nSFTsInSeg != nSFTsExpected) ) {
XLALPrintError ("%s: Segment list seems inconsistent with data read: segment %d contains %d SFTs, should hold %d SFTs\n", __func__, k, nSFTsInSeg, nSFTsExpected );
ABORT ( status, HIERARCHICALSEARCH_EBAD, HIERARCHICALSEARCH_MSGEBAD );
}
......
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