Ignore:
Timestamp:
Apr 9, 2017 6:11:31 AM (8 years ago)
Author:
andyfaff
Branches:
master, 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, costrafo411, magnetic_scatt, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
45dffa69
Parents:
ac07a3a
Message:

MAINT: search+replace '!= None' by 'is not None'

File:
1 edited

Legend:

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

    rac07a3a r7432acb  
    156156        PlotPanel.onLeftDown(self, event) 
    157157        ax = event.inaxes 
    158         if ax != None: 
     158        if ax is not None: 
    159159            # data coordinate position 
    160160            pos_x = "%8.3g" % event.xdata 
     
    264264        # control axis labels from the panel itself 
    265265        yname, yunits = data.get_yaxis() 
    266         if self.yaxis_label != None: 
     266        if self.yaxis_label is not None: 
    267267            yname = self.yaxis_label 
    268268            yunits = self.yaxis_unit 
     
    271271            self.yaxis_unit = yunits 
    272272        xname, xunits = data.get_xaxis() 
    273         if self.xaxis_label != None: 
     273        if self.xaxis_label is not None: 
    274274            xname = self.xaxis_label 
    275275            xunits = self.xaxis_unit 
     
    355355            slicerpop.Append(wx_id, '&Box Averaging in Qy') 
    356356            wx.EVT_MENU(self, wx_id, self.onBoxavgY) 
    357             if self.slicer != None: 
     357            if self.slicer is not None: 
    358358                wx_id = ids.next() 
    359359                slicerpop.Append(wx_id, '&Clear Slicer') 
     
    435435                msg = "Add Text: Error. Check your property values..." 
    436436                logger.error(msg) 
    437                 if self.parent != None: 
     437                if self.parent is not None: 
    438438                    wx.PostEvent(self.parent, StatusEvent(status=msg)) 
    439439        dial.Destroy() 
     
    629629 
    630630        """ 
    631         if self.slicer != None: 
     631        if self.slicer is not None: 
    632632            from SlicerParameters import SlicerParameterPanel 
    633633            dialog = SlicerParameterPanel(self, -1, "Slicer Parameters") 
     
    735735        """ 
    736736        event_id = str(evt.GetId()) 
    737         if self.parent != None: 
     737        if self.parent is not None: 
    738738            self._default_save_location = self.parent._default_save_location 
    739739        default_name = self.plots[self.graph.selected_plottable].label 
     
    759759            default_name = default_name.split('.')[0] 
    760760        #default_name += "_out" 
    761         if self.parent != None: 
     761        if self.parent is not None: 
    762762            self.parent.show_data2d(data, default_name) 
    763763 
Note: See TracChangeset for help on using the changeset viewer.