Changeset eb320682 in sasview for src/sas/sascalc/corfunc
- Timestamp:
- Jul 12, 2016 3:29:11 AM (8 years ago)
- Branches:
- master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- 41345d7e
- Parents:
- c512f7d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sascalc/corfunc/corfunc_calculator.py
ra2db1ab reb320682 201 201 mask = np.where(np.abs((y-(m*x+b))/y) < 0.01)[0] 202 202 if len(mask) == 0: # Return garbage for bad fits 203 return garbage203 return { 'max': self._round_sig_figs(x[maxs[0]], 6) } 204 204 dtr = x[mask[0]] # Beginning of Linear Section 205 205 d0 = x[mask[-1]] # End of Linear Section
Note: See TracChangeset
for help on using the changeset viewer.