Changes in / [8c9e65c:f205d3a] in sasview
- Location:
- src/sas/sascalc
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sascalc/corfunc/corfunc_calculator.py
re090ba90 rdbfd307 245 245 """Fit the Guinier region of the curve""" 246 246 A = np.vstack([q**2, np.ones(q.shape)]).T 247 return lstsq(A, np.log(iq), rcond=None) 247 # CRUFT: numpy>=1.14.0 allows rcond=None for the following default 248 rcond = np.finfo(float).eps * max(A.shape) 249 return lstsq(A, np.log(iq), rcond=rcond) 248 250 249 251 def _fit_porod(self, q, iq): -
src/sas/sascalc/invariant/invariant.py
re090ba90 rdbfd307 344 344 else: 345 345 A = np.vstack([linearized_data.x / linearized_data.dy, 1.0 / linearized_data.dy]).T 346 # CRUFT: numpy>=1.14.0 allows rcond=None for the following default 347 rcond = np.finfo(float).eps * max(A.shape) 346 348 p, residuals, _, _ = np.linalg.lstsq(A, linearized_data.y / linearized_data.dy, 347 rcond= None)349 rcond=rcond) 348 350 349 351 # Get the covariance matrix, defined as inv_cov = a_transposed * a -
src/sas/sascalc/pr/invertor.py
r57e48ca rdbfd307 474 474 475 475 # Perform the inversion (least square fit) 476 c, chi2, _, _ = lstsq(a, b, rcond=-1) 476 # CRUFT: numpy>=1.14.0 allows rcond=None for the following default 477 rcond = np.finfo(float).eps * max(a.shape) 478 c, chi2, _, _ = lstsq(a, b, rcond=rcond) 477 479 # Sanity check 478 480 try:
Note: See TracChangeset
for help on using the changeset viewer.