IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 27, 2022, 10:14:37 AM (4 years ago)
Author:
eugene
Message:

fpcamera now builds, but does it run?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20220316/fpcamera/src/fpcameraDataSave.c

    r42175 r42178  
    66bool fpcameraDataSave (pmConfig *config, psMetadata *stats) {
    77
     8    bool status;
    89    pmChip *chip;
    910    pmCell *cell;
    1011    pmReadout *readout;
    11 
    1212    pmFPAview *view = NULL;
    1313
    1414    // select the current recipe
    15     psMetadata *recipe  = psMetadataLookupPtr (NULL, config->recipes, FPCAMERA_RECIPE);
    16     if (!recipe) ESCAPE(FPCAMERA_ERR_CONFIG, "Can't find FPCAMERA recipe!");
     15    psMetadata *recipe  = psMetadataLookupPtr (&status, config->recipes, FPCAMERA_RECIPE);
     16    if (!recipe) ESCAPE (FPCAMERA_ERR_CONFIG, "Can't find FPCAMERA recipe");
    1717
    1818    // select the output data sources
     
    4949                if (hdu && hdu != lastHDU) {
    5050                    fpcameraVersionHeaderFull(hdu->header);
    51                     // Append teh reference catalog to the header as well.
     51                    // Append the reference catalog to the header as well.
    5252                    char *catdir = psMetadataLookupStr(NULL,recipe,"FPCAMERA.CATDIR");
    53 
    54                     psMetadata *recipe = psMetadataLookupPtr(NULL, config->recipes, FPCAMERA_RECIPE);
    5553                    psMetadataAddStr(hdu->header,PS_LIST_TAIL, "PSREFCAT", PS_META_REPLACE, NULL, catdir);
    56 
    5754                    lastHDU = hdu;
    5855                }
     
    6865    // XXX fix : if (!fpcameraMetadataStats (config, stats)) ESCAPE(FPCAMERA_ERR_UNKNOWN, "failure to save state in Metadata");
    6966
    70     bool status;
    7167    psString dump_file = psMetadataLookupStr(&status, config->arguments, "DUMP_CONFIG");
    7268    if (dump_file) {
Note: See TracChangeset for help on using the changeset viewer.