Changeset ac07a3a in sasview for src/sas/sasgui/plottools


Ignore:
Timestamp:
Apr 9, 2017 6:08:43 AM (7 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:
7432acb
Parents:
235f514
Message:

MAINT: replace 'not x is None' by 'x is not None'

Location:
src/sas/sasgui/plottools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • src/sas/sasgui/plottools/fittings.py

    r235f514 rac07a3a  
    2525        self.model = model 
    2626        self.name = name 
    27         if not value is None: 
     27        if value is not None: 
    2828            self.model.setParam(self.name, value) 
    2929 
  • src/sas/sasgui/plottools/plottable_interactor.py

    r235f514 rac07a3a  
    5050            l_width = markersize * 0.4 
    5151            return self.step(x=x, y=y, color=color, label=label, width=l_width) 
    52         if not self.marker is None: 
    53             self.base.connect.clear([self.marker]) 
    54         self.color = self._color(color) 
    55         if self.markersize != None: 
     52        if self.marker is not None: 
     53            self.base.connect.clear([self.marker]) 
     54        self.color = self._color(color) 
     55        if self.markersize is not None: 
    5656            markersize = self.markersize 
    5757        # Convert tuple (lo,hi) to array [(x-lo),(hi-x)] 
  • src/sas/sasgui/plottools/plottables.py

    r235f514 rac07a3a  
    229229            if p.hidden == True: 
    230230                continue 
    231             if not p.x is None: 
     231            if p.x is not None: 
    232232                for x_i in p.x: 
    233233                    if min_value is None or x_i < min_value: 
Note: See TracChangeset for help on using the changeset viewer.