Changeset c1114bf in sasmodels


Ignore:
Timestamp:
Jun 7, 2017 11:17:52 AM (7 years ago)
Author:
Paul Kienzle <pkienzle@…>
Branches:
master, core_shell_microgels, costrafo411, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
Children:
c11d09f, 3a45c2c, c935936
Parents:
487e695
Message:

lint

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/kernelcl.py

    rd2b939c rc1114bf  
    578578        # Free buffers 
    579579        for v in (details_b, values_b): 
    580             if v is not None: v.release() 
     580            if v is not None: 
     581                v.release() 
    581582 
    582583        pd_norm = self.result[self.q_input.nq] 
    583         scale = values[0]/(pd_norm if pd_norm!=0.0 else 1.0) 
     584        scale = values[0]/(pd_norm if pd_norm != 0.0 else 1.0) 
    584585        background = values[1] 
    585586        #print("scale",scale,values[0],self.result[self.q_input.nq],background) 
Note: See TracChangeset for help on using the changeset viewer.