IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 10526


Ignore:
Timestamp:
Dec 6, 2006, 6:16:26 PM (19 years ago)
Author:
Paul Price
Message:

Adding missing logic for writing cell.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/camera/pmFPAWrite.c

    r10512 r10526  
    127127    // Generate the HDU if needed --- this is required after a pmFPACopy, or similar, which does not
    128128    // generate the HDU, but only copies the structure.
    129     if (!hdu->blankPHU && !*imageArray && (!pmHDUGenerateForCell(cell) || !*imageArray)) {
     129    if (!blank && !hdu->blankPHU && !*imageArray && (!pmHDUGenerateForCell(cell) || !*imageArray)) {
    130130        psError(PS_ERR_UNKNOWN, false, "Unable to generate HDU for cell --- likely programming error.\n");
    131131        return false;
     
    137137
    138138    if (writeBlank || writeImage) {
     139
    139140        updateNames(cell->parent->parent, cell->parent, cell);
    140141        pmConceptSource source = PM_CONCEPT_SOURCE_HEADER | PM_CONCEPT_SOURCE_CELLS |
     
    177178        // generate the HDU, but only copies the structure.
    178179        if (!blank && !hdu->blankPHU && !*imageArray && (!pmHDUGenerateForChip(chip) || !*imageArray)) {
    179             psError(PS_ERR_UNKNOWN, false, "Unable to generate HDU for chip --- likely programming error.\n");
     180            psError(PS_ERR_UNKNOWN, false,
     181                    "Unable to generate HDU for chip --- likely programming error.\n");
    180182            return false;
    181183        }
     
    240242        // generate the HDU, but only copies the structure.
    241243        if (!blank && !hdu->blankPHU && !*imageArray && (!pmHDUGenerateForFPA(fpa) || !*imageArray)) {
    242             psError(PS_ERR_UNKNOWN, false, "Unable to generate HDU for FPA --- likely programming error.\n");
     244            psError(PS_ERR_UNKNOWN, false,
     245                    "Unable to generate HDU for FPA --- likely programming error.\n");
    243246            return false;
    244247        }
Note: See TracChangeset for help on using the changeset viewer.