Changeset a8b3e2c in sasview for src/sas/qtgui/Perspectives
- Timestamp:
- Sep 20, 2018 8:12:00 AM (6 years ago)
- Branches:
- ESS_GUI, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
- Children:
- 0177eb6
- Parents:
- 5d3af9f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Perspectives/Fitting/FittingWidget.py
raa82f54 ra8b3e2c 63 63 if not hasattr(SasviewModel, 'get_weights'): 64 64 def get_weights(self, name): 65 """Returns model weights by parameter name. 66 type: (str) -> Tuple(float, np.ndarray, np.ndarray) 67 Supposed to be a member of SasviewModel.""" 68 p = [p for p in self._model_info.parameters.call_parameters 69 if name is p.name] 70 if not len(p): 71 return None, None, None 72 return self._get_weights(p[0]) 65 """ 66 Returns the polydispersity distribution for parameter *name* as *value* and *weight* arrays. 67 """ 68 # type: (str) -> Tuple(np.ndarray, np.ndarray) 69 _, x, w = self._get_weights(self._model_info.parameters[name]) 70 return x, w 73 71 74 72 SasviewModel.get_weights = get_weights
Note: See TracChangeset
for help on using the changeset viewer.