Skip to content
Snippets Groups Projects
Commit 3a58d47c authored by Matt King's avatar Matt King
Browse files

changed the limit of characters used by runno

For stitched runs the suffix of the workspace (after the underscore) should
now show the all the numbers after the third index of the whole runno

Refs #13757
parent 95d4e5f3
No related merge requests found
......@@ -799,9 +799,9 @@ class ReflGui(QtGui.QMainWindow, ui_refl_window.Ui_windowRefl):
w1 = getWorkspace(wksp[0])
w2 = getWorkspace(wksp[-1])
if len(runno) == 2:
outputwksp = runno[0] + '_' + runno[1][3:5]
outputwksp = runno[0] + '_' + runno[1][3:]
else:
outputwksp = runno[0] + '_' + runno[-1][3:5]
outputwksp = runno[0] + '_' + runno[-1][3:]
begoverlap = w2.readX(0)[0]
# get Qmax
if self.tableMain.item(row, i * 5 + 4).text() == '':
......@@ -906,9 +906,9 @@ class ReflGui(QtGui.QMainWindow, ui_refl_window.Ui_windowRefl):
# Create and plot stitched outputs
if self.__checked_row_stiched(row):
if len(runno) == 2:
outputwksp = runno[0] + '_' + runno[1][3:5]
outputwksp = runno[0] + '_' + runno[1][3:]
else:
outputwksp = runno[0] + '_' + runno[2][3:5]
outputwksp = runno[0] + '_' + runno[2][3:]
if not getWorkspace(outputwksp, report_error=False):
# Stitching has not been done as part of processing, so we need to do it here.
wcomb = combineDataMulti(wkspBinned, outputwksp, overlapLow, overlapHigh, Qmin, Qmax, -dqq, 1, keep=True)
......
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