IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 41537


Ignore:
Timestamp:
Apr 3, 2021, 2:26:48 PM (5 years ago)
Author:
eugene
Message:

raise a warning, rather that fail with an error, if we cannot generate the curve of growth

File:
1 edited

Legend:

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

    r31452 r41537  
    4040        bool INTERPOLATE_AP = psMetadataLookupBool (&status, recipe, "INTERPOLATE_AP");
    4141        if (!pmGrowthCurveGenerateFromSources (readout, psf, sources, INTERPOLATE_AP, maskVal, markVal)) {
    42             psError(PSPHOT_ERR_APERTURE, false, "Fitting aperture corrections");
     42            // psError(PSPHOT_ERR_APERTURE, false, "Fitting aperture corrections");
     43            psWarning("Failed to measure the growth curve for aperture corrections (from sources)");
    4344            psFree(psf->growth); psf->growth = NULL;
    44             return false;
     45            return true;
    4546        }
    4647
     
    4849        bool IGNORE_GROWTH = psMetadataLookupBool (&status, recipe, "IGNORE_GROWTH");
    4950        if (!pmGrowthCurveGenerate (readout, psf, IGNORE_GROWTH, maskVal, markVal)) {
    50             psError(PSPHOT_ERR_APERTURE, false, "Fitting aperture corrections");
     51            // psError(PSPHOT_ERR_APERTURE, false, "Fitting aperture corrections");
     52            psWarning("Failed to measure the growth curve for aperture corrections (from model)");
    5153            psFree(psf->growth); psf->growth = NULL;
    52             return false;
     54            return true;
    5355        }
    5456    }
Note: See TracChangeset for help on using the changeset viewer.