IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 16947


Ignore:
Timestamp:
Mar 12, 2008, 10:34:01 AM (18 years ago)
Author:
Paul Price
Message:

Warning rather than error when concepts don't match.

File:
1 edited

Legend:

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

    r16710 r16947  
    3333    PS_ASSERT_PTR_NON_NULL(sources, false);
    3434    PS_ASSERT_INT_POSITIVE(sources->n, false);
    35     bool success = true;                // Result of setting everything
    3635
    3736    double time      = 0.0;             // Time of observation
     
    5655        } else {
    5756            if (timeSys != psMetadataLookupS32(NULL, fpa->concepts, "FPA.TIMESYS")) {
    58                 psError(PS_ERR_BAD_PARAMETER_VALUE, true, "Differing FPA.TIMESYS in use: %d vs %d\n",
    59                         timeSys, psMetadataLookupS32(NULL, fpa->concepts, "FPA.TIMESYS"));
    60                 success = false;
     57                psWarning("Differing FPA.TIMESYS in use: %d vs %d\n",
     58                          timeSys, psMetadataLookupS32(NULL, fpa->concepts, "FPA.TIMESYS"));
    6159            }
    6260            if (strcmp(filter, psMetadataLookupStr(NULL, fpa->concepts, "FPA.FILTER")) != 0) {
    63                 psError(PS_ERR_BAD_PARAMETER_VALUE, true, "Differing FPA.FILTER in use: %s vs %s\n",
    64                         filter, psMetadataLookupStr(NULL, fpa->concepts, "FPA.FILTER"));
    65                 success = false;
     61                psWarning("Differing FPA.FILTER in use: %s vs %s\n",
     62                          filter, psMetadataLookupStr(NULL, fpa->concepts, "FPA.FILTER"));
    6663            }
    6764        }
     
    8178    }
    8279
    83     return success;
     80    return true;
    8481}
    8582
     
    9390    PS_ASSERT_INT_POSITIVE(sources->n, false);
    9491
    95     bool success = true;                // Result of setting everything
    9692    float gain       = 0.0;             // Gain
    9793    float readnoise  = 0.0;             // Read noise
     
    137133        } else {
    138134            if (timeSys != psMetadataLookupS32(NULL, cell->concepts, "CELL.TIMESYS")) {
    139                 psError(PS_ERR_BAD_PARAMETER_VALUE, true, "Differing CELL.TIMESYS in use: %d vs %d\n",
    140                         timeSys, psMetadataLookupS32(NULL, cell->concepts, "CELL.TIMESYS"));
    141                 success = false;
     135                psWarning("Differing CELL.TIMESYS in use: %d vs %d\n",
     136                          timeSys, psMetadataLookupS32(NULL, cell->concepts, "CELL.TIMESYS"));
    142137            }
    143138            if (readdir != psMetadataLookupS32(NULL, cell->concepts, "CELL.READDIR")) {
    144                 psError(PS_ERR_BAD_PARAMETER_VALUE, true, "Differing CELL.READDIR in use: %d vs %d\n",
    145                         readdir, psMetadataLookupS32(NULL, cell->concepts, "CELL.READDIR"));
    146                 success = false;
     139                psWarning("Differing CELL.READDIR in use: %d vs %d\n",
     140                          readdir, psMetadataLookupS32(NULL, cell->concepts, "CELL.READDIR"));
    147141            }
    148142            if (xBin != psMetadataLookupS32(NULL, cell->concepts, "CELL.XBIN")) {
    149                 psError(PS_ERR_BAD_PARAMETER_VALUE, true, "Differing CELL.XBIN in use: %d vs %d\n",
    150                         xBin, psMetadataLookupS32(NULL, cell->concepts, "CELL.XBIN"));
    151                 success = false;
     143                psWarning("Differing CELL.XBIN in use: %d vs %d\n",
     144                          xBin, psMetadataLookupS32(NULL, cell->concepts, "CELL.XBIN"));
    152145            }
    153146            if (yBin != psMetadataLookupS32(NULL, cell->concepts, "CELL.YBIN")) {
    154                 psError(PS_ERR_BAD_PARAMETER_VALUE, true, "Differing CELL.YBIN in use: %d vs %d\n",
    155                         yBin, psMetadataLookupS32(NULL, cell->concepts, "CELL.YBIN"));
    156                 success = false;
     147                psWarning("Differing CELL.YBIN in use: %d vs %d\n",
     148                          yBin, psMetadataLookupS32(NULL, cell->concepts, "CELL.YBIN"));
    157149            }
    158150            if (same) {
    159151                if (x0 != psMetadataLookupS32(NULL, cell->concepts, "CELL.X0")) {
    160                     psError(PS_ERR_BAD_PARAMETER_VALUE, true, "Differing CELL.X0 in use: %d vs %d\n",
    161                             x0, psMetadataLookupS32(NULL, cell->concepts, "CELL.X0"));
    162                     success = false;
     152                    psWarning("Differing CELL.X0 in use: %d vs %d\n",
     153                              x0, psMetadataLookupS32(NULL, cell->concepts, "CELL.X0"));
    163154                }
    164155                if (y0 != psMetadataLookupS32(NULL, cell->concepts, "CELL.Y0")) {
    165                     psError(PS_ERR_BAD_PARAMETER_VALUE, true, "Differing CELL.Y0 in use: %d vs %d\n",
    166                             y0, psMetadataLookupS32(NULL, cell->concepts, "CELL.Y0"));
    167                     success = false;
     156                    psWarning("Differing CELL.Y0 in use: %d vs %d\n",
     157                              y0, psMetadataLookupS32(NULL, cell->concepts, "CELL.Y0"));
    168158                }
    169159                if (xParity != psMetadataLookupS32(NULL, cell->concepts, "CELL.XPARITY")) {
    170                     psError(PS_ERR_BAD_PARAMETER_VALUE, true, "Differing CELL.XPARITY in use: %d vs %d\n",
    171                             xParity, psMetadataLookupS32(NULL, cell->concepts, "CELL.XPARITY"));
    172                     success = false;
     160                    psWarning("Differing CELL.XPARITY in use: %d vs %d\n",
     161                              xParity, psMetadataLookupS32(NULL, cell->concepts, "CELL.XPARITY"));
    173162                }
    174163                if (yParity != psMetadataLookupS32(NULL, cell->concepts, "CELL.YPARITY")) {
    175                     psError(PS_ERR_BAD_PARAMETER_VALUE, true, "Differing CELL.YPARITY in use: %d vs %d\n",
    176                             yParity, psMetadataLookupS32(NULL, cell->concepts, "CELL.YPARITY"));
    177                     success = false;
     164                    psWarning("Differing CELL.YPARITY in use: %d vs %d\n",
     165                              yParity, psMetadataLookupS32(NULL, cell->concepts, "CELL.YPARITY"));
    178166                }
    179167            }
     
    235223    }
    236224
    237     return success;
    238 }
    239 
     225    return true;
     226}
     227
Note: See TracChangeset for help on using the changeset viewer.