Changeset 0c7b8d8 in sasmodels
 Timestamp:
 Mar 28, 2019 6:33:05 AM (6 months ago)
 Branches:
 master
 Children:
 3f3df6c
 Parents:
 d522352
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

sasmodels/sesans.py
rd522352 r0c7b8d8 59 59 def _set_hankel(self, SElength, lam, zaccept, Rmax): 60 60 # type: (np.ndarray, float, float) > None 61 # Force float32 arrays, otherwise run into memory problems on 62 # some machines 63 SElength = np.asarray(SElength, dtype='float32') 61 SElength = np.asarray(SElength, dtype='float64') 64 62 65 63 # Rmax = #value in text box somewhere in FitPage? … … 70 68 # dtype=np.float32)) 71 69 q = np.exp(np.linspace(np.log(q_min), np.log(q_max), 10*SElength.size, 72 dtype=np.float 32))70 dtype=np.float64)) 73 71 q = np.hstack([[0], q]) 74 72 … … 82 80 H /= 2 * np.pi * SElength 83 81 84 lam = np.asarray(lam, dtype=np.float 32)82 lam = np.asarray(lam, dtype=np.float64) 85 83 reptheta = np.outer(q[1:], lam) 86 reptheta /= np.float 32(2*np.pi)84 reptheta /= np.float64(2*np.pi) 87 85 np.arcsin(reptheta, out=reptheta) 88 86 # reptheta = np.arcsin(repq*replam/2*np.pi)
Note: See TracChangeset
for help on using the changeset viewer.