Changeset 235f514 in sasview for test/sasrealspace


Ignore:
Timestamp:
Apr 9, 2017 3:46:10 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:
ac07a3a
Parents:
5b2b04d
Message:

MAINT: replace '== None' by 'is None'

Location:
test/sasrealspace/test
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • test/sasrealspace/test/sim_validation.py

    r959eb01 r235f514  
    3232            #return: mean, error 
    3333        """ 
    34         if not density == None: 
     34        if not density is None: 
    3535            self.density = density 
    3636            self.create() 
     
    4545            #return: mean, error 
    4646        """ 
    47         if not density == None: 
     47        if not density is None: 
    4848            self.density = density 
    4949            self.create() 
  • test/sasrealspace/test/utest_realspace.py

    r959eb01 r235f514  
    326326        self.canvas.setParam('%s.radius' % handle, self.outer_radius) 
    327327        self.canvas.setParam('%s.contrast' % handle, self.shell_sld) 
    328         if not order1 == None: 
     328        if not order1 is None: 
    329329            self.canvas.setParam('%s.order' % handle, order1) 
    330330        
     
    332332        self.canvas.setParam('%s.radius' % handle2, self.radius) 
    333333        self.canvas.setParam('%s.contrast' % handle2, 1.0) 
    334         if not order2 == None: 
     334        if not order2 is None: 
    335335            self.canvas.setParam('%s.order' % handle2, order2) 
    336336                
Note: See TracChangeset for help on using the changeset viewer.