IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 30, 2009, 9:46:55 PM (17 years ago)
Author:
Paul Price
Message:

Propagation of concept writing should be independent of whether there's an HDU at the particular level. Why on earth did I put that in there in the first place???

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/concepts/pmConceptsWrite.c

    r23587 r23623  
    6262        while ((cItem = psListGetAndIncrement(cIter))) {
    6363            if (cItem->type != PS_DATA_STRING) {
    64                 psWarning("psMetadataItem from list is of type %x instead of %x (PS_DATA_STRING) --- can't interpret.\n", cItem->type, PS_DATA_STRING);
     64                psWarning("psMetadataItem from list is of type %x instead of %x (PS_DATA_STRING) --- can't interpret.\n", cItem->type, PS_DATA_STRING);
    6565                psFree(cIter);
    6666                psFree(sIter);
     
    606606        for (long i = 0; i < chips->n; i++) {
    607607            pmChip *chip = chips->data[i];  // Chip of interest
    608             if (chip && !chip->hdu) {
     608            if (chip) {
    609609                success &= pmConceptsWriteChip(chip, false, true, config);
    610610            }
     
    622622    pmFPA *fpa = chip->parent;          // FPA to which the chip belongs
    623623    bool success = conceptsWrite(&conceptsChip, fpa, chip, NULL, config, chip->concepts);
    624     if (propagateUp && !fpa->hdu) {
     624    if (propagateUp) {
    625625        psMetadata *conceptsFPA = pmConceptsSpecs(PM_FPA_LEVEL_FPA); // Concept specifications
    626626        success &= conceptsWrite(&conceptsFPA, fpa, chip, NULL, config, fpa->concepts);
     
    630630        for (long i = 0; i < cells->n; i++) {
    631631            pmCell *cell = cells->data[i];  // Cell of interest
    632             if (cell && !cell->hdu) {
     632            if (cell) {
    633633                success &= pmConceptsWriteCell(cell, false, config);
    634634            }
     
    649649    bool success = conceptsWrite(&conceptsCell, fpa, chip, cell, config, cell->concepts);
    650650    if (propagateUp) {
    651         if (!chip->hdu) {
    652             psMetadata *conceptsChip = pmConceptsSpecs(PM_FPA_LEVEL_CHIP); // Concept specifications
    653             success &= conceptsWrite(&conceptsChip, fpa, chip, cell, config, chip->concepts);
    654             if (!fpa->hdu) {
    655                 psMetadata *conceptsFPA = pmConceptsSpecs(PM_FPA_LEVEL_FPA); // Concept specifications
    656                 success &= conceptsWrite(&conceptsFPA, fpa, chip, cell, config, fpa->concepts);
    657             }
    658         }
     651        psMetadata *conceptsChip = pmConceptsSpecs(PM_FPA_LEVEL_CHIP); // Concept specifications
     652        success &= conceptsWrite(&conceptsChip, fpa, chip, cell, config, chip->concepts);
     653        psMetadata *conceptsFPA = pmConceptsSpecs(PM_FPA_LEVEL_FPA); // Concept specifications
     654        success &= conceptsWrite(&conceptsFPA, fpa, chip, cell, config, fpa->concepts);
    659655    }
    660656
Note: See TracChangeset for help on using the changeset viewer.