IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 13, 2006, 4:23:40 PM (20 years ago)
Author:
Paul Price
Message:

Getting code to compile; adding concept read to fpa construction and reading

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/rel10_ifa/psModules/src/astrom/pmConcepts.c

    r6570 r6575  
    8383        pmConceptsInit();
    8484    }
    85     psMetadataIterator *specsIter = psMetadataIteratorAlloc(*specs, PS_LIST_HEAD, NULL); // Iterator on specs
     85    psMetadataIterator *specsIter = psMetadataIteratorAlloc(specs, PS_LIST_HEAD, NULL); // Iterator on specs
    8686    psMetadataItem *specItem = NULL;    // Item from the specs metadata
    8787    while ((specItem = psMetadataGetAndIncrement(specsIter))) {
     
    122122    }
    123123    if (source & PM_CONCEPT_SOURCE_DATABASE || source == PM_CONCEPT_SOURCE_ALL) {
    124         pmConceptsReadFromHeader(specs, fpa, chip, cell, db, target);
     124        pmConceptsReadFromDatabase(specs, fpa, chip, cell, db, target);
    125125    }
    126126
     
    152152    }
    153153    if (source & PM_CONCEPT_SOURCE_DATABASE || source == PM_CONCEPT_SOURCE_ALL) {
    154         pmConceptsWriteToHeader(specs, fpa, chip, cell, db, concepts);
     154        pmConceptsWriteToDatabase(specs, fpa, chip, cell, db, concepts);
    155155    }
    156156
     
    179179// Read the concepts for a given FPA
    180180bool pmConceptsWriteFPA(pmFPA *fpa,     // FPA for which to write concepts
     181                        pmConceptSource source, // The source of the concepts to read
    181182                        psDB *db        // Database handle
    182183                       )
    183184{
    184185    psTrace("psModule.concepts", 5, "Writing FPA concepts: %x %x\n", conceptsFPA, fpa->concepts);
    185     return conceptsWrite(conceptsFPA, fpa, NULL, NULL, db, fpa->concepts);
     186    return conceptsWrite(conceptsFPA, fpa, NULL, NULL, source, db, fpa->concepts);
    186187}
    187188
     
    207208// Read the concepts for a given FPA
    208209bool pmConceptsWriteChip(pmChip *chip,  // Chip for which to write concepts
     210                         pmConceptSource source, // The source of the concepts to read
    209211                         psDB *db        // Database handle
    210212                        )
     
    212214    psTrace("psModule.concepts", 5, "Writing chip concepts: %x %x\n", conceptsChip, chip->concepts);
    213215    pmFPA *fpa = chip->parent;          // FPA to which the chip belongs
    214     return conceptsWrite(conceptsChip, fpa, chip, NULL, db, chip->concepts);
     216    return conceptsWrite(conceptsChip, fpa, chip, NULL, source, db, chip->concepts);
    215217}
    216218
     
    237239// Read the concepts for a given FPA
    238240bool pmConceptsWriteCell(pmCell *cell,  // FPA for which to write concepts
     241                         pmConceptSource source, // The source of the concepts to read
    239242                         psDB *db       // Database handle
    240243                        )
     
    243246    pmChip *chip = cell->parent;        // Chip to which the cell belongs
    244247    pmFPA *fpa = chip->parent;          // FPA to which the chip belongs
    245     return conceptsWrite(conceptsCell, fpa, chip, cell, db, cell->concepts);
     248    return conceptsWrite(conceptsCell, fpa, chip, cell, source, db, cell->concepts);
    246249}
    247250
     
    394397
    395398        // CELL.DARKTIME
    396         {Read
     399        {
    397400            psMetadataItem *cellDarktime = psMetadataItemAllocF32("CELL.DARKTIME",
    398401                                           "Time since flush (sec)", NAN);
     
    428431            psMetadataItem *cellXbin = psMetadataItemAllocS32("CELL.XBIN", "Binning in x", 0);
    429432            pmConceptRegister(cellXbin, (pmConceptParseFunc)pmConceptParse_CELL_Binning,
    430                               (pmConceptFormatFunc)pmConceptFormat_CELL_Binning, PM_CONCEPT_LEVEL_CELL);
     433                              (pmConceptFormatFunc)pmConceptFormat_CELL_XBIN, PM_CONCEPT_LEVEL_CELL);
    431434            psFree(cellXbin);
    432435        }
     
    436439            psMetadataItem *cellYbin = psMetadataItemAllocS32("CELL.YBIN", "Binning in y", 0);
    437440            pmConceptRegister(cellYbin, (pmConceptParseFunc)pmConceptParse_CELL_Binning,
    438                               (pmConceptFormatFunc)pmConceptFormat_CELL_Binning, PM_CONCEPT_LEVEL_CELL);
     441                              (pmConceptFormatFunc)pmConceptFormat_CELL_YBIN, PM_CONCEPT_LEVEL_CELL);
    439442            psFree(cellYbin);
    440443        }
Note: See TracChangeset for help on using the changeset viewer.