Ignore:
Timestamp:
Nov 9, 2017 8:41:55 AM (6 years ago)
Author:
Piotr Rozyczko <rozyczko@…>
Branches:
ESS_GUI, ESS_GUI_Docs, 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:
7fb471d
Parents:
b3e8629
git-author:
Piotr Rozyczko <rozyczko@…> (10/27/17 03:42:57)
git-committer:
Piotr Rozyczko <rozyczko@…> (11/09/17 08:41:55)
Message:

Converted more syntax not covered by 2to3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/Plotting/Slicers/SectorSlicer.py

    • Property mode changed from 100755 to 100644
    rb3e8629 rcee5c78  
    125125        data = self.base.data 
    126126        # If we have no data, just return 
    127         if data == None: 
     127        if data is None: 
    128128            return 
    129129        # Averaging 
     
    132132        phimin = -self.left_line.phi + self.main_line.theta 
    133133        phimax = self.left_line.phi + self.main_line.theta 
    134         if nbins == None: 
     134        if nbins is None: 
    135135            nbins = 20 
    136136        sect = SectorQ(r_min=0.0, r_max=radius, 
     
    168168        new_plot.id = "SectorQ" + self.base.data.name 
    169169        new_plot.is_data = True 
    170         variant_plot = QtCore.QVariant(new_plot) 
    171         GuiUtils.updateModelItemWithPlot(self._item, variant_plot, new_plot.id) 
     170        GuiUtils.updateModelItemWithPlot(self._item, new_plot, new_plot.id) 
    172171        self.base.manager.communicator.plotUpdateSignal.emit([new_plot]) 
    173172 
     
    349348        self.left_moving = left 
    350349        theta3 = 0 
    351         if phi != None: 
     350        if phi is not None: 
    352351            self.phi = phi 
    353         if delta == None: 
     352        if delta is None: 
    354353            delta = 0 
    355354        if  right: 
     
    361360            self.theta = mline.theta + self.phi 
    362361 
    363         if mline != None: 
     362        if mline is not None: 
    364363            if delta != 0: 
    365364                self.theta2 = mline + delta 
     
    509508        """ 
    510509 
    511         if theta != None: 
     510        if theta is not None: 
    512511            self.theta = theta 
    513512        x1 = self.radius * numpy.cos(self.theta) 
Note: See TracChangeset for help on using the changeset viewer.