IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 33980


Ignore:
Timestamp:
Jun 1, 2012, 3:50:35 PM (14 years ago)
Author:
mhuber
Message:

changing assert fail fault for no sources to just continue on

Location:
trunk/psphot/src
Files:
2 edited

Legend:

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

    r32348 r33980  
    4747
    4848    psArray *sources = detections->allSources;
    49     psAssert (sources, "missing sources?");
     49    //psAssert (sources, "missing sources?");
     50    // if no work, should just return true
     51    if (!sources) return true;
    5052
    5153    psTimerStart ("psphot.noise");
  • trunk/psphot/src/psphotReplaceUnfit.c

    r32721 r33980  
    6060
    6161    psArray *sources = detections->allSources;
    62     psAssert (sources, "missing sources?");
     62    //psAssert (sources, "missing sources?");
     63    if (!sources) return true;
    6364
    6465    // user-defined masks to test for good/bad pixels (build from recipe list if not yet set)
     
    139140
    140141    psArray *sources = detections->allSources;
    141     psAssert (sources, "missing sources?");
    142 
     142    //psAssert (sources, "missing sources?");
     143    if (!sources) return true;
     144   
    143145    // user-defined masks to test for good/bad pixels (build from recipe list if not yet set)
    144146    psImageMaskType maskVal = psMetadataLookupImageMask(&status, recipe, "MASK.PSPHOT"); // Mask value for bad pixels
Note: See TracChangeset for help on using the changeset viewer.