From 4147653f3ccda6b346b4a032b1978290a61e4f2b Mon Sep 17 00:00:00 2001 From: Pete Peterson <petersonpf@ornl.gov> Date: Mon, 7 May 2018 11:37:49 -0400 Subject: [PATCH] Check chisq of fitted peak parameters This should help track down error in windows build. Refs #22286 --- Framework/Algorithms/test/PDCalibrationTest.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Framework/Algorithms/test/PDCalibrationTest.h b/Framework/Algorithms/test/PDCalibrationTest.h index 73ce2e265f3..dccc20fcc1c 100644 --- a/Framework/Algorithms/test/PDCalibrationTest.h +++ b/Framework/Algorithms/test/PDCalibrationTest.h @@ -158,6 +158,14 @@ public: // 0 is keep TS_ASSERT_EQUALS(mask->y(WKSPINDEX_155)[0], 0); TS_ASSERT_EQUALS(mask->y(WKSPINDEX_195)[0], 0); + + ITableWorkspace_sptr peaksTable = + AnalysisDataService::Instance().retrieveWS<ITableWorkspace>( + "diag_fitparam"); + for (size_t i = 0; i < peaksTable->rowCount(); ++i) { + std::cout << "row[" << i << "] "; + TS_ASSERT_LESS_THAN(peaksTable->cell<double>(i, 7), 100.); // chisq + } } void test_exec_difc_tzero() { -- GitLab