Skip to content

Commit

Permalink
Re #4303 Make plotting buttons more flexible
Browse files Browse the repository at this point in the history
  • Loading branch information
mdoucet committed Feb 10, 2012
1 parent bfa1005 commit 2469d94
Showing 1 changed file with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,11 @@ def _plot_count_vs_y(self):
if not IS_IN_MANTIDPLOT:
return

f = FileFinder.findRuns("REF_L%s" % str(self._summary.data_run_number_edit.text()))
try:
f = FileFinder.findRuns(str(self._summary.data_run_number_edit.text()))
except:
f = FileFinder.findRuns("REF_L%s" % str(self._summary.data_run_number_edit.text()))

if len(f)>0 and os.path.isfile(f[0]):
def call_back(xmin, xmax):
self._summary.data_peak_from_pixel.setText("%-d" % int(xmin))
Expand All @@ -307,7 +311,11 @@ def _plot_tof(self):
if not IS_IN_MANTIDPLOT:
return

f = FileFinder.findRuns("REF_L%s" % str(self._summary.norm_run_number_edit.text()))
try:
f = FileFinder.findRuns(str(self._summary.norm_run_number_edit.text()))
except:
f = FileFinder.findRuns("REF_L%s" % str(self._summary.norm_run_number_edit.text()))

if len(f)>0 and os.path.isfile(f[0]):
def call_back(xmin, xmax):
self._summary.data_from_tof.setText("%-d" % int(xmin))
Expand Down

0 comments on commit 2469d94

Please sign in to comment.