Skip to content

Commit

Permalink
Merge pull request #37456 from robertapplin/0-use-int-instead-of-long
Browse files Browse the repository at this point in the history
Use int for algorithm property when calling python algorithm from c++
  • Loading branch information
SilkeSchomann authored Jun 4, 2024
2 parents 6e1254e + 09ee3d6 commit 28a5e32
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions qt/scientific_interfaces/Inelastic/BayesFitting/Quasi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
6 changes: 3 additions & 3 deletions qt/scientific_interfaces/Inelastic/BayesFitting/Stretch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 28a5e32

Please sign in to comment.