Changeset dbfd307 in sasview for src/sas/sascalc/corfunc
- Timestamp:
- Mar 5, 2019 4:21:09 PM (6 years ago)
- Branches:
- master, magnetic_scatt, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1249
- Children:
- 7af652d
- Parents:
- 4cbb2f5
- File:
-
- 1 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):
Note: See TracChangeset
for help on using the changeset viewer.