Ignore:
Timestamp:
Nov 9, 2017 6: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 01:42:57)
git-committer:
Piotr Rozyczko <rozyczko@…> (11/09/17 06:41:55)
Message:

Converted more syntax not covered by 2to3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/sasgui/guiframe/local_perspectives/plotting/SectorSlicer.py

    rc416a17 rcee5c78  
    126126        data = self.base.data 
    127127        # If we have no data, just return 
    128         if data == None: 
     128        if data is None: 
    129129            return 
    130130        # Averaging 
     
    133133        phimin = -self.left_line.phi + self.main_line.theta 
    134134        phimax = self.left_line.phi + self.main_line.theta 
    135         if nbins == None: 
     135        if nbins is None: 
    136136            nbins = 20 
    137137        sect = SectorQ(r_min=0.0, r_max=radius, 
     
    169169        new_plot.id = "SectorQ" + self.base.data.name 
    170170        new_plot.is_data = True 
    171         variant_plot = QtCore.QVariant(new_plot) 
    172         GuiUtils.updateModelItemWithPlot(self._item, variant_plot, new_plot.id) 
     171        GuiUtils.updateModelItemWithPlot(self._item, new_plot, new_plot.id) 
    173172        self.base.manager.communicator.plotUpdateSignal.emit([new_plot]) 
    174173 
     
    356355        if phi != None: 
    357356            self.phi = phi 
    358         if delta == None: 
     357        if delta is None: 
    359358            delta = 0 
    360359        if  right: 
Note: See TracChangeset for help on using the changeset viewer.