コード例 #1
0
ファイル: stitcher.py プロジェクト: nimgould/mantid
 def _medium_range(self):
     """
         User requested to select range common to data sets 2 and 3
     """
     if self._medium_q_data is not None:
         def call_back(xmin, xmax):
             self._content.medium_min_edit.setText("%-6.3g" % xmin)
             self._content.medium_max_edit.setText("%-6.3g" % xmax)
         ws_list = []
         if self._medium_q_data is not None:
             ws_list.append(str(self._medium_q_data))
         if self._high_q_data is not None:
             ws_list.append(str(self._high_q_data))
         RangeSelector.connect(ws_list, call_back=call_back)
コード例 #2
0
    def _medium_range(self):
        """
            User requested to select range common to data sets 2 and 3
        """
        if self._medium_q_data is not None:
            def call_back(minmax):
                self._content.medium_min_edit.setText("%-6.3g" % minmax[0])
                self._content.medium_max_edit.setText("%-6.3g" % minmax[1])

            ws_list = []
            if self._medium_q_data is not None:
                ws_list.append(str(self._medium_q_data))
            if self._high_q_data is not None:
                ws_list.append(str(self._high_q_data))
            RangeSelector.connect(ws_list, call_back=call_back)
コード例 #3
0
ファイル: stitcher.py プロジェクト: tomgriffinstfc/mantid
    def _low_range(self):
        """
            User requested to select range common to data sets 1 and 2
        """
        if self._low_q_data is not None:
            def call_back(xmin, xmax):
                self._content.low_min_edit.setText("%-6.3g" % xmin)
                self._content.low_max_edit.setText("%-6.3g" % xmax)

            ws_list = []
            if self._low_q_data is not None:
                ws_list.append(str(self._low_q_data))
            if self._medium_q_data is not None:
                ws_list.append(str(self._medium_q_data))
            RangeSelector.connect(ws_list, call_back=call_back)