IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 19, 2021, 10:48:38 AM (5 years ago)
Author:
eugene
Message:

allow expRO to be NULL

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20211108/ppStack/src/ppStackReadout.c

    r41910 r41920  
    362362}
    363363
     364// NOTE: expRO is allowed to be NULL
    364365bool ppStackReadoutPercent(const pmConfig *config, pmReadout *outRO, pmReadout *expRO, const psArray *readouts,
    365366                               const psVector *mask, const psVector *weightings, const psVector *exposures,
     
    368369    assert(config);
    369370    assert(outRO);
    370     assert(expRO);
    371371    assert(readouts);
    372372    assert(mask && mask->n == readouts->n && mask->type.type == PS_TYPE_VECTOR_MASK);
     
    420420    }
    421421
    422     // XXX rename minRange to rejectFraction
    423     // XXX add expmaps
    424422    if (!pmStackCombineByPercentile(outRO, expRO, stackData, minRange, maskBad, maskSuspect, maskBlank)) {
    425423        psError(PS_ERR_UNKNOWN, false, "Unable to combine input readouts with rejection.");
     
    432430    outRO->parent->parent->data_exists = true; // output chip
    433431
    434     expRO->data_exists = true;                 // expmap readout
    435     expRO->parent->data_exists = true;         // expmap cell   
    436     expRO->parent->parent->data_exists = true; // expmap chip   
    437 
     432    if (expRO) {
     433      expRO->data_exists = true;                 // expmap readout
     434      expRO->parent->data_exists = true;               // expmap cell   
     435      expRO->parent->parent->data_exists = true; // expmap chip
     436    }
     437     
    438438    psFree(stackData);
    439439    sectionNum++;
Note: See TracChangeset for help on using the changeset viewer.