Skip to content
Snippets Groups Projects
Commit b68d6060 authored by Doucet, Mathieu's avatar Doucet, Mathieu
Browse files

Minor change to accommodate python reduction script refactor. Re #1421

parent fb9e1d0f
No related branches found
No related tags found
No related merge requests found
......@@ -604,7 +604,7 @@ bool SANSRunWindow::loadUserFile()
////Detector bank
param = runReduceScriptFunction(
"printParameter('SANSInsts.getCurDetector().name()')");
"printParameter('INSTRUMENT.curDetector().name()')");
index = m_uiForm.detbank_sel->findText(param);
if( index >= 0 && index < 2 )
{
......@@ -1977,7 +1977,7 @@ void SANSRunWindow::handleInstrumentChange(int index)
fillDetectNames(m_uiForm.detbank_sel);
QString detect = runReduceScriptFunction(
"printParameter('SANSInsts.getCurDetector().name()')");
"printParameter('INSTRUMENT.curDetector().name()')");
int ind = m_uiForm.detbank_sel->findText(detect);
if( ind >= 0 && ind < 2 )
{
......@@ -2345,7 +2345,7 @@ bool SANSRunWindow::runAssign(int key, QString & logs)
void SANSRunWindow::fillDetectNames(QComboBox *output)
{
QString detsTuple = runReduceScriptFunction(
"printParameter('SANSInsts.getCurInst().listDetectors()')");
"printParameter('INSTRUMENT.listDetectors()')");
if (detsTuple.isEmpty())
{//this happens if the run Python signal hasn't yet been connected
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment