IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 12, 2009, 12:52:36 PM (17 years ago)
Author:
eugene
Message:

warn on missing data for HDU, but do not raise an error (OK for mask and variance); generateHDU does not own cells -- free after exit in calling function

File:
1 edited

Legend:

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

    r23318 r24769  
    390390    if (numReadouts == 0 || (imageType == 0 && maskType == 0 && varianceType == 0)) {
    391391        // Nothing from which to create an HDU
    392         psFree(cells);
    393         psError(PS_ERR_IO, true, "Nothing from which to create an HDU\n");
    394         return false;
     392        // psError(PS_ERR_IO, true, "Nothing from which to create an HDU\n");
     393        psWarning("Nothing from which to create an HDU, must be empty\n");
     394        return true;
    395395    }
    396396
     
    504504        psFree(iter);
    505505    }
    506     psFree(cells);
    507 
    508506    return true;
    509507}
     
    615613                return true;
    616614            }
    617 
    618             return generateHDU(hdu, cells);
     615            bool status = generateHDU(hdu, cells);
     616            psFree (cells);
     617            return status;
    619618        }
    620619    case PM_FPA_LEVEL_CHIP:
     
    664663            }
    665664
    666             return generateHDU(hdu, cells);
     665            bool status = generateHDU(hdu, cells);
     666            psFree (cells);
     667            return status;
    667668        }
    668669    case PM_FPA_LEVEL_FPA:
Note: See TracChangeset for help on using the changeset viewer.