Skip to content

Commit

Permalink
Implemented for the REF_M team. This refs #5801
Browse files Browse the repository at this point in the history
  • Loading branch information
JeanBilheux committed Nov 28, 2012
1 parent 09932f4 commit f23165b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -922,7 +922,6 @@ def call_back(self, peakmin, peakmax, backmin, backmax, tofmin, tofmax):
self._summary.data_from_tof.setText("%-d" % int(tofmin))
self._summary.data_to_tof.setText("%-d" % int(tofmax))


def _norm_count_vs_y(self):

# run_number = self._summary.norm_run_number_edit.text()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -965,9 +965,15 @@ def _plot_data_count_vs_tof_2d(self):

import mantidqtpython
self.ref_det_view = mantidqtpython.MantidQt.RefDetectorViewer.RefMatrixWSImageView(ws_output_base_ff+'_2D')
#QtCore.QObject.connect(self.ref_det_view.getConnections(), QtCore.SIGNAL("python_peak_back_tof_range_update(double,double, double,double,double,double)"), self.call_back)


QtCore.QObject.connect(self.ref_det_view.getConnections(), QtCore.SIGNAL("peak_back_tof_range_update(double,double, double,double,double,double)"), self.call_back)

def call_back(self, peakmin, peakmax, backmin, backmax, tofmin, tofmax):
self._summary.data_peak_from_pixel.setText("%-d" % int(peakmin))
self._summary.data_peak_to_pixel.setText("%-d" % int(peakmax))
self._summary.data_background_from_pixel1.setText("%-d" % int(backmin))
self._summary.data_background_to_pixel1.setText("%-d" % int(backmax))
self._summary.data_from_tof.setText("%-d" % int(tofmin))
self._summary.data_to_tof.setText("%-d" % int(tofmax))



Expand Down

0 comments on commit f23165b

Please sign in to comment.