IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 31062


Ignore:
Timestamp:
Mar 27, 2011, 10:25:11 AM (15 years ago)
Author:
eugene
Message:

older formats did not carry objID and catID; we cannot validate those fields

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20110213/Ohana/src/addstar/src/resort_catalog.c

    r30613 r31062  
    9292    averageSeq[i] = measure[i].averef;
    9393   
    94     myAssert(average[averageSeq[i]].objID == measure[measureSeq[i]].objID, "object / detection mismatch");
    95     myAssert(average[averageSeq[i]].catID == measure[measureSeq[i]].catID, "object / detection mismatch");
     94    if (catalog[0].catformat >= DVO_FORMAT_PS1_V1) {
     95      // earlier formats did not carry the objID or catID, so they are not available (we could assign on load, but we don't)
     96      myAssert(average[averageSeq[i]].objID == measure[measureSeq[i]].objID, "object / detection mismatch");
     97      myAssert(average[averageSeq[i]].catID == measure[measureSeq[i]].catID, "object / detection mismatch");
     98    }
    9699  }
    97100 
Note: See TracChangeset for help on using the changeset viewer.