comparison data/fileio/CSVFormat.cpp @ 676:611a4fa14dde sv_v1.8

* Avoid including non-value columns in 3d-model column count (fixes #38)
author Chris Cannam
date Mon, 04 Apr 2011 15:20:29 +0100
parents ad7c96620886
children e50a8fee6752
comparison
equal deleted inserted replaced
675:341e4e1a6ed3 676:611a4fa14dde
172 if (lineno == 0 || cols > m_maxExampleCols) { 172 if (lineno == 0 || cols > m_maxExampleCols) {
173 m_maxExampleCols = cols; 173 m_maxExampleCols = cols;
174 } 174 }
175 } 175 }
176 176
177 std::cerr << "Estimated column qualities: "; 177 // std::cerr << "Estimated column qualities: ";
178 for (int i = 0; i < m_columnCount; ++i) { 178 // for (int i = 0; i < m_columnCount; ++i) {
179 std::cerr << int(m_columnQualities[i]) << " "; 179 // std::cerr << int(m_columnQualities[i]) << " ";
180 } 180 // }
181 std::cerr << std::endl; 181 // std::cerr << std::endl;
182 } 182 }
183 183
184 void 184 void
185 CSVFormat::guessPurposes() 185 CSVFormat::guessPurposes()
186 { 186 {
284 } else { 284 } else {
285 m_modelType = ThreeDimensionalModel; 285 m_modelType = ThreeDimensionalModel;
286 } 286 }
287 } 287 }
288 288
289 std::cerr << "Estimated column purposes: "; 289 // std::cerr << "Estimated column purposes: ";
290 for (int i = 0; i < m_columnCount; ++i) { 290 // for (int i = 0; i < m_columnCount; ++i) {
291 std::cerr << int(m_columnPurposes[i]) << " "; 291 // std::cerr << int(m_columnPurposes[i]) << " ";
292 } 292 // }
293 std::cerr << std::endl; 293 // std::cerr << std::endl;
294 294
295 std::cerr << "Estimated model type: " << m_modelType << std::endl; 295 // std::cerr << "Estimated model type: " << m_modelType << std::endl;
296 std::cerr << "Estimated timing type: " << m_timingType << std::endl; 296 // std::cerr << "Estimated timing type: " << m_timingType << std::endl;
297 std::cerr << "Estimated units: " << m_timeUnits << std::endl; 297 // std::cerr << "Estimated units: " << m_timeUnits << std::endl;
298 } 298 }
299 299
300 CSVFormat::ColumnPurpose 300 CSVFormat::ColumnPurpose
301 CSVFormat::getColumnPurpose(int i) 301 CSVFormat::getColumnPurpose(int i)
302 { 302 {