IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 10, 2008, 9:11:57 AM (18 years ago)
Author:
Paul Price
Message:

Fixing logic error in iterating, which caused ppMerge to jump over all the chips in a MOSAIC2 camera.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppMerge/src/ppMergeCombine.c

    r16842 r16907  
    124124    }
    125125    while ((chip = pmFPAviewNextChip(view, fpa, 1))) {
    126         if (!chip->hdu) {
    127             continue;
    128         }
    129         // Data will exist soon
    130         pmFPAUpdateNames(data->out, chip, NULL);
    131         chip->data_exists = true;
     126        if (chip->hdu) {
     127            // Data will exist soon
     128            pmFPAUpdateNames(data->out, chip, NULL);
     129            chip->data_exists = true;
     130        }
    132131        pmChipWrite(chip, data->outFile, config->database, true, false); // Write header only
    133132        pmCell *cell;                   // Cell of interest
    134133        while ((cell = pmFPAviewNextCell(view, fpa, 1))) {
    135134            cellNum++;
    136             if (!cell->hdu) {
    137                 continue;
    138             }
    139             // Data will exist soon
    140             pmFPAUpdateNames(data->out, chip, cell);
    141             chip->data_exists = cell->data_exists = true;
     135            if (cell->hdu) {
     136                // Data will exist soon
     137                pmFPAUpdateNames(data->out, chip, cell);
     138                chip->data_exists = cell->data_exists = true;
     139            }
    142140            pmCellWrite(cell, data->outFile, config->database, true); // Write header only
    143141            pmReadout *readout = pmReadoutAlloc(cell); // Output readout of interest
Note: See TracChangeset for help on using the changeset viewer.