From 31f47f62143e3e83bfe6e8ba7897cfbb1937002a Mon Sep 17 00:00:00 2001 From: Andreas Suter Date: Wed, 11 Jan 2017 17:58:50 +0100 Subject: [PATCH] added to msr2data the flags --estimateN0 and --per-run-block-chisq. Adopted the musredit dialog accordingly. Removed the first/last option form the msr2data dialog since this is handled by the runlist. --- src/msr2data.cpp | 22 ++- src/musredit/PAdmin.cpp | 6 +- src/musredit/PMsr2DataDialog.cpp | 82 +--------- src/musredit/PMsr2DataDialog.h | 4 +- src/musredit/PTextEdit.cpp | 57 +++---- src/musredit/forms/PMsr2DataDialog.ui | 182 +++++---------------- src/musredit/musredit.h | 4 +- src/musredit_qt5/PAdmin.cpp | 6 +- src/musredit_qt5/PMsr2DataDialog.cpp | 82 +--------- src/musredit_qt5/PMsr2DataDialog.h | 4 +- src/musredit_qt5/PTextEdit.cpp | 57 +++---- src/musredit_qt5/forms/PMsr2DataDialog.ui | 189 ++++++---------------- src/musredit_qt5/musredit.h | 4 +- 13 files changed, 174 insertions(+), 525 deletions(-) diff --git a/src/msr2data.cpp b/src/msr2data.cpp index dac2a5ad..79a95b09 100644 --- a/src/msr2data.cpp +++ b/src/msr2data.cpp @@ -68,7 +68,7 @@ using namespace boost::algorithm; */ bool isNumber(const string &s) { - unsigned int number; + unsigned int number(0); try { number = boost::lexical_cast(s); return true; @@ -123,8 +123,10 @@ void msr2data_syntax() cout << endl << " the successive files are generated using the musrfit output from the preceding runs"; cout << endl << " msr-