IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 23731


Ignore:
Timestamp:
Apr 7, 2009, 3:45:46 PM (17 years ago)
Author:
Paul Price
Message:

Set data_exists appropriately once data exists.

Location:
branches/pap/psModules/src/imcombine
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/pap/psModules/src/imcombine/pmSubtraction.c

    r21470 r23731  
    13851385    }
    13861386
     1387    // Data exists on the outputs now
     1388    if (out1) {
     1389        out1->data_exists = true;
     1390        if (out1->parent) {
     1391            out1->parent->data_exists = out1->parent->parent->data_exists = true;
     1392        }
     1393    }
     1394    if (out2) {
     1395        out2->data_exists = true;
     1396        if (out2->parent) {
     1397            out2->parent->data_exists = out2->parent->parent->data_exists = true;
     1398        }
     1399    }
     1400
     1401
    13871402    psLogMsg("psModules.imcombine", PS_LOG_INFO, "Convolve image: %f sec",
    13881403             psTimerClear("pmSubtractionConvolve"));
  • branches/pap/psModules/src/imcombine/pmSubtractionMatch.c

    r23688 r23731  
    567567            psFree(kernels);
    568568            kernels = NULL;
    569 
    570             // There is data in the readout now
    571             if (subMode == PM_SUBTRACTION_MODE_1 || subMode == PM_SUBTRACTION_MODE_DUAL) {
    572                 conv1->data_exists = true;
    573                 if (conv1->parent) {
    574                     conv1->parent->data_exists = true;
    575                     conv1->parent->parent->data_exists = true;
    576                 }
    577             }
    578             if (subMode == PM_SUBTRACTION_MODE_2 || subMode == PM_SUBTRACTION_MODE_DUAL) {
    579                 conv2->data_exists = true;
    580                 if (conv2->parent) {
    581                     conv2->parent->data_exists = true;
    582                     conv2->parent->parent->data_exists = true;
    583                 }
    584             }
    585569        }
    586570    }
Note: See TracChangeset for help on using the changeset viewer.