IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 2, 2012, 11:18:35 AM (14 years ago)
Author:
eugene
Message:

attempt to reinsert sources on the second pass (actually on the "not-first-pass"). However, it is not an error for no sources to be present if no sources are added and/or subtracted, the significance image will not be regenerated

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot/src/psphotReplaceUnfit.c

    r34136 r34492  
    4343}
    4444
     45// the return state indicates if any sources were actually replaced
    4546bool psphotReplaceAllSourcesReadout (pmConfig *config, const pmFPAview *view, const char *filename, int index, psMetadata *recipe, bool ignoreState) {
    4647
     
    5859    if (psMetadataLookupBool (&status, readout->analysis, "PSPHOT.SKIP.INPUT")) {
    5960        psLogMsg ("psphot", PS_LOG_DETAIL, "skipping replace all sources for input file %d", index);
    60         return true;
     61        return false;
    6162    }
    6263
     
    6566
    6667    psArray *sources = detections->allSources;
    67     //psAssert (sources, "missing sources?");
    68     if (!sources) return true;
     68    // if no work to do, should just return false
     69    if (!sources) return false;
    6970
    7071    // user-defined masks to test for good/bad pixels (build from recipe list if not yet set)
Note: See TracChangeset for help on using the changeset viewer.