Changeset 82d88d5 in sasview for src/sas/sascalc/pr
- Timestamp:
- Mar 6, 2019 4:18:09 PM (6 years ago)
- Branches:
- master, magnetic_scatt, release-4.2.2, ticket-1009, ticket-1249
- Children:
- f923967
- Parents:
- cb64d86 (diff), f205d3a (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent. - Location:
- src/sas/sascalc/pr
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sascalc/pr/distance_explorer.py
r959eb01 re090ba90 99 99 results.pos_err.append(pos_err) 100 100 results.osc.append(osc) 101 except :101 except Exception as exc: 102 102 # This inversion failed, skip this D_max value 103 103 msg = "ExploreDialog: inversion failed for " 104 msg += "D_max=%s\n %s" % (str(d), sys.exc_value)104 msg += "D_max=%s\n %s" % (str(d), exc) 105 105 results.errors.append(msg) 106 106 -
src/sas/sascalc/pr/fit/expression.py
r574adc7 re090ba90 210 210 211 211 #print("Function: "+functiondef) 212 exec functiondef in globals,locals212 exec(functiondef, globals, locals) 213 213 retfn = locals['eval_expressions'] 214 214 -
src/sas/sascalc/pr/invertor.py
r57e48ca r7af652d 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: -
src/sas/sascalc/pr/num_term.py
r3e6829d r8c9e65c 182 182 data_y = np.append(data_y, test_y) 183 183 data_err = np.append(data_err, err) 184 except :185 logger.error( sys.exc_value)184 except Exception as exc: 185 logger.error(exc) 186 186 187 187 return data_x, data_y, data_err
Note: See TracChangeset
for help on using the changeset viewer.