Changeset 16947
- Timestamp:
- Mar 12, 2008, 10:34:01 AM (18 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/concepts/pmConceptsAverage.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/concepts/pmConceptsAverage.c
r16710 r16947 33 33 PS_ASSERT_PTR_NON_NULL(sources, false); 34 34 PS_ASSERT_INT_POSITIVE(sources->n, false); 35 bool success = true; // Result of setting everything36 35 37 36 double time = 0.0; // Time of observation … … 56 55 } else { 57 56 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")); 61 59 } 62 60 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")); 66 63 } 67 64 } … … 81 78 } 82 79 83 return success;80 return true; 84 81 } 85 82 … … 93 90 PS_ASSERT_INT_POSITIVE(sources->n, false); 94 91 95 bool success = true; // Result of setting everything96 92 float gain = 0.0; // Gain 97 93 float readnoise = 0.0; // Read noise … … 137 133 } else { 138 134 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")); 142 137 } 143 138 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")); 147 141 } 148 142 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")); 152 145 } 153 146 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")); 157 149 } 158 150 if (same) { 159 151 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")); 163 154 } 164 155 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")); 168 158 } 169 159 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")); 173 162 } 174 163 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")); 178 166 } 179 167 } … … 235 223 } 236 224 237 return success;238 } 239 225 return true; 226 } 227
Note:
See TracChangeset
for help on using the changeset viewer.
