Changes in sasmodels/kerneldll.py [0dc34c3:14a15a3] in sasmodels


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/kerneldll.py

    r0dc34c3 r14a15a3  
    389389 
    390390        #print("returned",self.q_input.q, self.result) 
    391         scale = values[0]/self.result[self.q_input.nq] 
     391        pd_norm = self.result[self.q_input.nq] 
     392        scale = values[0]/(pd_norm if pd_norm!=0.0 else 1.0) 
    392393        background = values[1] 
    393394        #print("scale",scale,background) 
Note: See TracChangeset for help on using the changeset viewer.