IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 29, 2007, 7:35:12 AM (19 years ago)
Author:
magnier
Message:

cleaned code in update concepts, skipping update concepts

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/config/pmConfigCamera.c

    r11149 r11359  
    2020    assert(translation);
    2121    assert(level == PM_FPA_LEVEL_CHIP || level == PM_FPA_LEVEL_FPA);
     22    return;
    2223
    2324    psListIterator *iter = psListIteratorAlloc(concepts, PS_LIST_HEAD, false); // Iterator
    2425    psString concept;                   // Concept, from iteration
    2526    while ((concept = psListGetAndIncrement(iter))) {
    26         if (strcmp(concept, "CELL.BIASSEC") != 0 && strcmp(concept, "CELL.TRIMSEC") != 0 &&
    27                 strcmp(concept, "CELL.XPARITY") != 0 && strcmp(concept, "CELL.YPARITY") != 0 &&
    28                 strcmp(concept, "CELL.X0") != 0 && strcmp(concept, "CELL.Y0") != 0 &&
    29                 (level != PM_FPA_LEVEL_FPA ||
    30                  (strcmp(concept, "CHIP.XPARITY") != 0 && strcmp(concept, "CHIP.YPARITY") != 0 &&
    31                   strcmp(concept, "CHIP.X0") != 0 && strcmp(concept, "CHIP.Y0") != 0))) {
    32             // We add these ourselves
    33             psMetadataAddStr(translation, PS_LIST_TAIL, concept, PS_META_REPLACE, NULL, concept);
    34         }
     27        // skip concepts added explicitly
     28        if (!strcmp(concept, "CELL.BIASSEC"))
     29            goto skip;
     30        if (!strcmp(concept, "CELL.TRIMSEC"))
     31            goto skip;
     32        if (!strcmp(concept, "CELL.XPARITY"))
     33            goto skip;
     34        if (!strcmp(concept, "CELL.YPARITY"))
     35            goto skip;
     36        if (!strcmp(concept, "CELL.X0"))
     37            goto skip;
     38        if (!strcmp(concept, "CELL.Y0"))
     39            goto skip;
     40        if ((level == PM_FPA_LEVEL_FPA) && !strcmp(concept, "CHIP.XPARITY"))
     41            goto skip;
     42        if ((level == PM_FPA_LEVEL_FPA) && !strcmp(concept, "CHIP.YPARITY"))
     43            goto skip;
     44        if ((level == PM_FPA_LEVEL_FPA) && !strcmp(concept, "CHIP.X0"))
     45            goto skip;
     46        if ((level == PM_FPA_LEVEL_FPA) && !strcmp(concept, "CHIP.Y0"))
     47            goto skip;
     48        psMetadataAddStr(translation, PS_LIST_TAIL, concept, PS_META_REPLACE, NULL, concept);
     49skip:
    3550        if (database && psMetadataLookup(database, concept)) {
    3651            psMetadataRemoveKey(database, concept);
Note: See TracChangeset for help on using the changeset viewer.