IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 29, 2008, 2:53:45 PM (18 years ago)
Author:
eugene
Message:

defer construction of blank of concepts until element is used

Location:
trunk/psModules/src/camera
Files:
3 edited

Legend:

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

    r17986 r18364  
    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
  • trunk/psModules/src/camera/pmFPAfileFitsIO.h

    r18330 r18364  
    55 * @author PAP, IfA
    66 *
    7  * @version $Revision: 1.13 $ $Name: not supported by cvs2svn $
    8  * @date $Date: 2008-06-26 21:11:56 $
     7 * @version $Revision: 1.14 $ $Name: not supported by cvs2svn $
     8 * @date $Date: 2008-06-30 00:53:45 $
    99 * Copyright 2004-2005 Institute for Astronomy, University of Hawaii
    1010 */
  • trunk/psModules/src/camera/pmFPAfileIO.h

    r18330 r18364  
    55 * @author PAP, IfA
    66 *
    7  * @version $Revision: 1.8 $ $Name: not supported by cvs2svn $
    8  * @date $Date: 2008-06-26 21:11:56 $
     7 * @version $Revision: 1.9 $ $Name: not supported by cvs2svn $
     8 * @date $Date: 2008-06-30 00:53:45 $
    99 * Copyright 2004-2005 Institute for Astronomy, University of Hawaii
    1010 */
Note: See TracChangeset for help on using the changeset viewer.