From b68d60602c167049a3d8371e2573b9b2d9148ec8 Mon Sep 17 00:00:00 2001 From: Mathieu Doucet <doucetm@ornl.gov> Date: Sat, 24 Jul 2010 03:59:47 +0000 Subject: [PATCH] Minor change to accommodate python reduction script refactor. Re #1421 --- .../qtiplot/MantidQt/CustomInterfaces/src/SANSRunWindow.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Code/qtiplot/MantidQt/CustomInterfaces/src/SANSRunWindow.cpp b/Code/qtiplot/MantidQt/CustomInterfaces/src/SANSRunWindow.cpp index c6895f26d80..8f48908b6d3 100644 --- a/Code/qtiplot/MantidQt/CustomInterfaces/src/SANSRunWindow.cpp +++ b/Code/qtiplot/MantidQt/CustomInterfaces/src/SANSRunWindow.cpp @@ -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 -- GitLab