From 09ee3d6414932bd643910b0fdb9fa9da011c97ff Mon Sep 17 00:00:00 2001 From: Applin Date: Mon, 3 Jun 2024 12:07:57 +0100 Subject: [PATCH] Use int for property when calling python algorithm from c++ --- qt/scientific_interfaces/Inelastic/BayesFitting/Quasi.cpp | 4 ++-- qt/scientific_interfaces/Inelastic/BayesFitting/Stretch.cpp | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/qt/scientific_interfaces/Inelastic/BayesFitting/Quasi.cpp b/qt/scientific_interfaces/Inelastic/BayesFitting/Quasi.cpp index 8875019d89d4..adf8f73ca521 100644 --- a/qt/scientific_interfaces/Inelastic/BayesFitting/Quasi.cpp +++ b/qt/scientific_interfaces/Inelastic/BayesFitting/Quasi.cpp @@ -212,8 +212,8 @@ void Quasi::run() { double const eMin = m_properties["EMin"]->valueText().toDouble(); double const eMax = m_properties["EMax"]->valueText().toDouble(); - long const sampleBins = m_properties["SampleBinning"]->valueText().toLong(); - long const resBins = m_properties["ResBinning"]->valueText().toLong(); + auto const sampleBins = m_properties["SampleBinning"]->valueText().toInt(); + auto const resBins = m_properties["ResBinning"]->valueText().toInt(); // Construct an output base name for the output workspaces auto const resType = resName.substr(resName.length() - 3); diff --git a/qt/scientific_interfaces/Inelastic/BayesFitting/Stretch.cpp b/qt/scientific_interfaces/Inelastic/BayesFitting/Stretch.cpp index d1e67dd91c51..ae3bae537c9f 100644 --- a/qt/scientific_interfaces/Inelastic/BayesFitting/Stretch.cpp +++ b/qt/scientific_interfaces/Inelastic/BayesFitting/Stretch.cpp @@ -134,9 +134,9 @@ void Stretch::run() { // Collect input from the properties browser auto const eMin = m_properties["EMin"]->valueText().toDouble(); auto const eMax = m_properties["EMax"]->valueText().toDouble(); - auto const beta = m_properties["Beta"]->valueText().toLong(); - auto const sigma = m_properties["Sigma"]->valueText().toLong(); - auto const nBins = m_properties["SampleBinning"]->valueText().toLong(); + auto const beta = m_properties["Beta"]->valueText().toInt(); + auto const sigma = m_properties["Sigma"]->valueText().toInt(); + auto const nBins = m_properties["SampleBinning"]->valueText().toInt(); // Bool options auto const elasticPeak = m_uiForm.chkElasticPeak->isChecked();