def select_bounds_in_logger(self, index):
        """
        sets index as the upper or lower bound of a fit based on what the other bound is and selects it in the logger. Requires 2 calls to completely update a interpretation. NOTE: Requires an interpretation to exist before it is called.
        @param: index - index of the step to select in the logger
        """
        tmin_index, tmax_index = "", ""
        if str(self.tmin_box.GetValue()) != "":
            tmin_index = self.tmin_box.GetSelection()
        if str(self.tmax_box.GetValue()) != "":
            tmax_index = self.tmax_box.GetSelection()
        # if there is no prior interpretation, assume first click is
        # tmin and set highest possible temp as tmax
        if not tmin_index and not tmax_index:
            tmin_index = index
            self.tmin_box.SetSelection(index)
            # set to the highest step
            max_step_data = self.Data[self.s]['datablock'][-1]
            step_key = 'treatment_temp'
            if MICROWAVE:
                step_key = 'treatment_mw_power'
            max_step = max_step_data[step_key]
            tmax_index = self.tmax_box.GetCount() - 1
            self.tmax_box.SetSelection(tmax_index)
        elif self.list_bound_loc != 0:
            if self.list_bound_loc == 1:
                if index < tmin_index:
                    self.tmin_box.SetSelection(index)
                    self.tmax_box.SetSelection(tmin_index)
                elif index == tmin_index:
                    pass
                else:
                    self.tmax_box.SetSelection(index)
            else:
                if index > tmax_index:
                    self.tmin_box.SetSelection(tmax_index)
                    self.tmax_box.SetSelection(index)
                elif index == tmax_index:
                    pass
                else:
                    self.tmin_box.SetSelection(index)
            self.list_bound_loc = 0
        else:
            if index < tmax_index:
                self.tmin_box.SetSelection(index)
                self.list_bound_loc = 1
            else:
                self.tmax_box.SetSelection(index)
                self.list_bound_loc = 2

        self.logger.Select(index, on=0)
        self.get_new_T_PI_parameters(-1)
def select_bounds_in_logger ( self , index ) : tmin_index , tmax_index = "" , "" if str ( self . tmin_box . GetValue ( ) ) != "" : tmin_index = self . tmin_box . GetSelection ( ) if str ( self . tmax_box . GetValue ( ) ) != "" : tmax_index = self . tmax_box . GetSelection ( ) if not tmin_index and not tmax_index : tmin_index = index self . tmin_box . SetSelection ( index ) max_step_data = self . Data [ self . s ] [ 'datablock' ] [ - 1 ] step_key = 'treatment_temp' if MICROWAVE : step_key = 'treatment_mw_power' max_step = max_step_data [ step_key ] tmax_index = self . tmax_box . GetCount ( ) - 1 self . tmax_box . SetSelection ( tmax_index ) elif self . list_bound_loc != 0 : if self . list_bound_loc == 1 : if index < tmin_index : self . tmin_box . SetSelection ( index ) self . tmax_box . SetSelection ( tmin_index ) elif index == tmin_index : pass else : self . tmax_box . SetSelection ( index ) else : if index > tmax_index : self . tmin_box . SetSelection ( tmax_index ) self . tmax_box . SetSelection ( index ) elif index == tmax_index : pass else : self . tmin_box . SetSelection ( index ) self . list_bound_loc = 0 else : if index < tmax_index : self . tmin_box . SetSelection ( index ) self . list_bound_loc = 1 else : self . tmax_box . SetSelection ( index ) self . list_bound_loc = 2 self . logger . Select ( index , on = 0 ) self . get_new_T_PI_parameters ( - 1 )
sets index as the upper or lower bound of a fit based on what the other bound is and selects it in the logger. Requires 2 calls to completely update a interpretation. NOTE: Requires an interpretation to exist before it is called.
        @param: index - index of the step to select in the logger