Skip to content

Commit

Permalink
Fixed issue with Reflectometer. This refs #5859
Browse files Browse the repository at this point in the history
  • Loading branch information
JeanBilheux authored and mantid-roman committed Sep 17, 2012
1 parent 284eeb3 commit ad58eb5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
Expand Up @@ -764,7 +764,9 @@ def _plot_count_vs_y(self, is_peak=True):
self._summary.data_peak_from_pixel,
self._summary.data_peak_to_pixel,
True)
#
print 'after error in line 767'


def _plot_count_vs_y_bck(self):
"""
Plot counts as a function of high-resolution pixels
Expand All @@ -773,7 +775,7 @@ def _plot_count_vs_y_bck(self):
For REFL, this is Y
"""

self._integrated_plot(True,
min, max = self._integrated_plot(True,
self._summary.data_run_number_edit,
self._summary.data_background_from_pixel1,
self._summary.data_background_to_pixel1,
Expand Down Expand Up @@ -864,6 +866,7 @@ def _integrated_plot(self, is_high_res, file_ctrl, min_ctrl, max_ctrl, isPeak=Tr
@param max_ctrl: control widget containing the range maximum
@param isPeak: are we working with peak or with background
"""

if not IS_IN_MANTIDPLOT:
return

Expand All @@ -876,7 +879,7 @@ def _integrated_plot(self, is_high_res, file_ctrl, min_ctrl, max_ctrl, isPeak=Tr
def call_back(xmin, xmax):
min_ctrl.setText("%-d" % int(xmin))
max_ctrl.setText("%-d" % int(xmax))

# For REFL, Y is high-res
is_pixel_y = is_high_res
# For REFM it's the other way around
Expand Down
Expand Up @@ -139,14 +139,6 @@ def _load_entry(entry, ws, title=""):
else:
_load_entry("entry", ws_base)

print 'ws_base is: ' , ws_base





return #remove_me

if callback is not None:
from LargeScaleStructures import data_stitching
data_stitching.RangeSelector.connect(ws_list, callback,
Expand Down

0 comments on commit ad58eb5

Please sign in to comment.