Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use int for algorithm property when calling python algorithm from c++ #37456

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading