Changeset 05fa132 in sasview for src/sas


Ignore:
Timestamp:
Jul 9, 2018 1:09:50 AM (6 years ago)
Author:
Piotr Rozyczko <rozyczko@…>
Branches:
ESS_GUI, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
Children:
515c23df
Parents:
a36517ad
git-author:
Piotr Rozyczko <rozyczko@…> (07/09/18 01:09:17)
git-committer:
Piotr Rozyczko <rozyczko@…> (07/09/18 01:09:50)
Message:

Minor fixes from pylint

Location:
src/sas/qtgui/Plotting
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/Plotting/MaskEditor.py

    re20870bc r05fa132  
    207207        Respond to changes in masking 
    208208        """ 
    209         # the case of liitle numbers of True points 
     209        # the case of litle numbers of True points 
    210210        if len(mask[mask]) < 10 and self.data is not None: 
    211             self.data.mask = copy.deepcopy(self.mask) 
     211            self.data.mask = copy.deepcopy(self.default_mask) 
    212212        else: 
    213             self.mask = mask 
     213            self.default_mask = mask 
    214214        # make temperary data to plot 
    215215        temp_mask = np.zeros(len(mask)) 
  • src/sas/qtgui/Plotting/Masks/SectorMask.py

    re20870bc r05fa132  
    166166            msg += "different %f, %f" % (self.left_line.phi, 
    167167                                         self.right_line.phi) 
    168             raise (ValueError, msg) 
     168            raise ValueError(msg) 
    169169        params["Phi"] = self.main_line.theta 
    170170        params["Delta_Phi"] = np.fabs(self.left_line.phi) 
  • src/sas/qtgui/Plotting/Slicers/Arc.py

    re20870bc r05fa132  
    3131    def set_layer(self, n): 
    3232        """ 
    33             Allow adding plot to the same panel 
    34             :param n: the number of layer 
     33        Allow adding plot to the same panel 
     34        :param n: the number of layer 
    3535        """ 
    3636        self.layernum = n 
     
    3939    def clear(self): 
    4040        """ 
    41             Clear this slicer and its markers 
     41        Clear this slicer and its markers 
    4242        """ 
    4343        self.clear_markers() 
     
    5353    def get_radius(self): 
    5454        """ 
    55             Return arc radius 
     55        Return arc radius 
    5656        """ 
    5757        radius = np.sqrt(np.power(self._mouse_x, 2) + \ 
     
    6161    def update(self, theta1=None, theta2=None, nbins=None, r=None): 
    6262        """ 
    63             Update the plotted arc 
    64             :param theta1: starting angle of the arc 
    65             :param theta2: ending angle of the arc 
    66             :param nbins: number of points along the arc 
    67             :param r: radius of the arc 
     63        Update the plotted arc 
     64        :param theta1: starting angle of the arc 
     65        :param theta2: ending angle of the arc 
     66        :param nbins: number of points along the arc 
     67        :param r: radius of the arc 
    6868        """ 
    6969        # Plot inner circle 
     
    7878        while self.theta2 >= (self.theta1 + 2 * np.pi): 
    7979            self.theta2 -= (2 * np.pi) 
    80         npts = int((self.theta2 - self.theta1) / (np.pi / 120)) 
     80        self.npts = int((self.theta2 - self.theta1) / (np.pi / 120)) 
    8181 
    8282        if r is None: 
     
    9292            x.append(xval) 
    9393            y.append(yval) 
    94         # self.marker.set(xdata=[self._mouse_x],ydata=[0]) 
    9594        self.arc.set_data(x, y) 
    9695 
     
    102101        self._save_x = self._mouse_x 
    103102        self._save_y = self._mouse_y 
    104         # self._save_x = ev.xdata 
    105         # self._save_y = ev.ydata 
    106103        self.base.freeze_axes() 
    107104 
    108105    def moveend(self, ev): 
    109106        """ 
    110             After a dragging motion reset the flag self.has_move to False 
    111             :param ev: event 
     107        After a dragging motion reset the flag self.has_move to False 
     108        :param ev: event 
    112109        """ 
    113110        self.has_move = False 
     
    126123        Process move to a new position, making sure that the move is allowed. 
    127124        """ 
    128         # print "ring move x, y", x,y 
    129125        self._mouse_x = x 
    130126        self._mouse_y = y 
Note: See TracChangeset for help on using the changeset viewer.