IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 10, 2008, 11:28:06 AM (18 years ago)
Author:
Paul Price
Message:

Fix compilation error. WEIGHTING defaults to 1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppStack/src/ppStackCamera.c

    r17426 r17427  
    7272{
    7373    bool haveWeights = false;           // Do we have weight maps?
    74     bool havePSF = false;               // Do we have PSFs?
     74    bool havePSFs = false;               // Do we have PSFs?
    7575
    7676    psMetadata *inputs = psMetadataLookupMetadata(NULL, config->arguments, "INPUTS"); // The inputs info
     
    102102        float weighting = psMetadataLookupF32(&mdok, input, "WEIGHTING"); // Relative weighting
    103103        if (!mdok || isnan(weighting) || weighting == 0.0) {
    104             psError(PS_ERR_BAD_PARAMETER_VALUE, true, "Component %s lacks WEIGHTING of type F32", item->name);
    105             psFree(iter);
    106             return false;
     104            psWarning("Component %s lacks WEIGHTING of type F32 --- assuming 1.0", item->name);
     105            weighting = 1.0;
    107106        }
    108107
Note: See TracChangeset for help on using the changeset viewer.