IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 5, 2006, 3:53:08 PM (20 years ago)
Author:
Paul Price
Message:

Fixing up errors when we don't have an entire FPA.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppStats/src/ppStatsLoop.c

    r7931 r8195  
    6969        getMetadata(fpaResults, fpa->concepts, conceptsIter);
    7070    }
    71 
    7271    psArray *chips = fpa->chips;        // Array of component chips
    7372    for (long i = 0; i < chips->n; i++) {
     
    8685
    8786        if (psListLength(data->headers) > 0 && chip->hdu) {
    88             pmChipReadHeader(chip, data->inFile);
     87            if (!pmChipReadHeader(chip, data->inFile)) {
     88                continue;
     89            }
    8990            pmHDU *hdu = chip->hdu;     // HDU for headers
    9091            getMetadata(chipResults, hdu->header, headersIter);
    9192        }
    9293        if (psListLength(data->concepts) > 0) {
    93             pmChipReadHeader(chip, data->inFile);
     94            if (!pmChipReadHeader(chip, data->inFile)) {
     95                continue;
     96            }
    9497            pmConceptsReadChip(chip, PM_CONCEPT_SOURCE_ALL, false, false, config->database);
    9598            getMetadata(chipResults, chip->concepts, conceptsIter);
     
    112115
    113116            if (psListLength(data->headers) > 0 && cell->hdu) {
    114                 pmCellReadHeader(cell, data->inFile);
     117                if (!pmCellReadHeader(cell, data->inFile)) {
     118                    continue;
     119                }
    115120                pmHDU *hdu = cell->hdu;     // HDU for headers
    116121                getMetadata(cellResults, hdu->header, headersIter);
    117122            }
    118123            if (psListLength(data->concepts) > 0) {
    119                 pmCellReadHeader(cell, data->inFile);
     124                if (!pmCellReadHeader(cell, data->inFile)) {
     125                    continue;
     126                }
    120127                pmConceptsReadCell(cell, PM_CONCEPT_SOURCE_ALL, false, config->database);
    121128                getMetadata(cellResults, cell->concepts, conceptsIter);
Note: See TracChangeset for help on using the changeset viewer.