Skip to content

Commit

Permalink
Started to work on new GUI to display 1D and 2D data and stitcher iss…
Browse files Browse the repository at this point in the history
…ue. This refs #5558
  • Loading branch information
JeanBilheux committed Jul 2, 2012
1 parent 4b8bc1b commit 61b8c14
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,17 @@ def PyExec(self):
import math
from reduction.instruments.reflectometer import wks_utility

from mantid import mtd
#remove all previous workspaces
list_mt = mtd.getObjectNames()
for _mt in list_mt:
if _mt.find('_scaled') != -1:
mtd.remove(_mt)
if _mt.find('_reflectivity') != -1:
mtd.remove(_mt)

from mantidsimple import mtd

bDebug = True
if bDebug:
print '====== Running in mode DEBUGGING ======='
Expand Down Expand Up @@ -1009,4 +1020,6 @@ def PyExec(self):

print

mtd.registerPyAlgorithm(RefLReduction())
mtd.registerPyAlgorithm(RefLReduction())


Original file line number Diff line number Diff line change
Expand Up @@ -455,11 +455,18 @@ def set_state(self, state):
self._workspace_list = []

# Refresh combo boxes
for item in mtd.keys():
if item.startswith("reflectivity") and not item.endswith("scaled")\
and item.find('On_Off')<0 and item.find('Off_On')<0\
and item.find('On_On')<0:
self._add_entry(item)
if self._settings.instrument_name == "REFL":
print 'in set_state of stitcher.py'
print



else: #REF_M
for item in mtd.keys():
if item.startswith("reflectivity") and not item.endswith("scaled")\
and item.find('On_Off')<0 and item.find('Off_On')<0\
and item.find('On_On')<0:
self._add_entry(item)

if len(self._workspace_list)>0:
self._workspace_list[0].select()
Expand Down

0 comments on commit 61b8c14

Please sign in to comment.