Changeset 18129
- Timestamp:
- 02/17/15 14:39:22 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/msimcamera/MSimCamera.cc
r18038 r18129 155 155 } 156 156 // Check all entries for inf and nan. Those are not accepted here. 157 for( std::vector< double > row : fFixTimeOffsetsBetweenPixelsInNs->fM){158 for( double number : row){159 160 if( std::isnan(number) || std::isinf(number) ){161 157 for( int row_index=0; row_index<fFixTimeOffsetsBetweenPixelsInNs->fM.size(); row_index++){ 158 std::vector<double> row = fFixTimeOffsetsBetweenPixelsInNs->fM.at(row_index); 159 for( int col_index=0; col_index<row.size(); col_index++){ 160 double specific_delay = row.at(col_index); 161 if( std::isnan(specific_delay) || std::isinf(specific_delay) ){ 162 162 *fLog << err << "In Source: "<< __FILE__ <<" in line: "; 163 163 *fLog << __LINE__; 164 164 *fLog << " in function: "<< __func__ <<"\n"; 165 *fLog << "There is a non normal numberin the fix temporal ";166 *fLog << "pixel offsets. This is at least one numberis ";167 *fLog << "NaN or Inf. This here is >"<< number;165 *fLog << "There is a non normal specific_delay in the fix temporal "; 166 *fLog << "pixel offsets. This is that at least one specific_delay is "; 167 *fLog << "NaN or Inf. This here is >"<< specific_delay; 168 168 *fLog << "<... aborting." << endl; 169 169 return kFALSE; 170 170 } 171 171 } 172 172 173 } 173 174 // -------------------------------------------------------------------
Note:
See TracChangeset
for help on using the changeset viewer.