Changeset ac07a3a in sasview for test


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

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

Location:
test
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • test/pr_inversion/test/utest_invertor.py

    r235f514 rac07a3a  
    576576    data_err = np.zeros(0) 
    577577    scale    = None 
    578     if not path is None: 
     578    if path is not None: 
    579579        input_f = open(path,'r') 
    580580        buff    = input_f.read() 
  • test/sasrealspace/test/sim_validation.py

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

    r235f514 rac07a3a  
    326326        self.canvas.setParam('%s.radius' % handle, self.outer_radius) 
    327327        self.canvas.setParam('%s.contrast' % handle, self.shell_sld) 
    328         if not order1 is None: 
     328        if order1 is not None: 
    329329            self.canvas.setParam('%s.order' % handle, order1) 
    330330        
Note: See TracChangeset for help on using the changeset viewer.