IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 18259


Ignore:
Timestamp:
Jun 20, 2008, 7:39:19 PM (18 years ago)
Author:
eugene
Message:

call pmConceptsBlank... if needed (conceptsRead is SOURCE_NONE)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branch_20080620/psModules/src/camera/pmFPA.c

    r17986 r18259  
    303303
    304304    tmpCell->concepts = psMetadataAlloc();
    305     tmpCell->conceptsRead = PM_CONCEPT_SOURCE_NONE;
    306305    if (!psMetadataAddStr(tmpCell->concepts, PS_LIST_HEAD, "CELL.NAME", 0, NULL, name)) {
    307306        psErrorClear();
    308307        psWarning("Could not add CELL.NAME to metadata.");
    309308    }
    310     pmConceptsBlankCell(tmpCell);
     309    tmpCell->conceptsRead = PM_CONCEPT_SOURCE_NONE;
     310    // XXX does this work?  moved to conceptsRead... pmConceptsBlankCell(tmpCell);
    311311
    312312    return tmpCell;
     
    342342
    343343    tmpChip->concepts = psMetadataAlloc();
    344     tmpChip->conceptsRead = PM_CONCEPT_SOURCE_NONE;
    345344    if (!psMetadataAddStr(tmpChip->concepts, PS_LIST_HEAD, "CHIP.NAME", 0, NULL, name)) {
    346345        psErrorClear();
    347346        psWarning("Could not add CHIP.NAME %s to concepts.", name);
    348347    }
    349     pmConceptsBlankChip(tmpChip);
     348    tmpChip->conceptsRead = PM_CONCEPT_SOURCE_NONE;
     349    // XXX does this work?  moved to conceptsRead... pmConceptsBlankChip(tmpChip);
    350350    return tmpChip;
    351351}
     
    372372
    373373    tmpFPA->concepts = psMetadataAlloc();
    374     tmpFPA->conceptsRead = PM_CONCEPT_SOURCE_NONE;
    375     pmConceptsBlankFPA(tmpFPA);
    376 
    377374    if (!psMetadataAddStr(tmpFPA->concepts, PS_LIST_TAIL, "FPA.CAMERA", PS_META_REPLACE,
    378375                          "Camera name (according to configuration)", cameraName)) {
     
    380377        psWarning("Could not add FPA.CAMERA %s to concepts.", cameraName);
    381378    }
     379    tmpFPA->conceptsRead = PM_CONCEPT_SOURCE_NONE;
     380    // XXX does this work?  moved to conceptsRead... pmConceptsBlankFPA(tmpFPA);
    382381
    383382    // this may be somewhat pedantic, but it makes these things consistent
Note: See TracChangeset for help on using the changeset viewer.