Changeset aa25fc7 in sasmodels for sasmodels/compare.py
- Timestamp:
- May 23, 2018 3:55:27 PM (6 years ago)
- Branches:
- master
- Children:
- 910c0f4
- Parents:
- 33969b6
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/compare.py
r1fbadb2 raa25fc7 41 41 from . import kerneldll 42 42 from . import kernelcl 43 from . import weights 43 44 from .data import plot_theory, empty_data1D, empty_data2D, load_data 44 45 from .direct_model import DirectModel, get_mesh 45 46 from .generate import FLOAT_RE, set_integration_size 46 from .weights import plot_weights47 47 48 48 # pylint: disable=unused-import … … 771 771 model_info = base._kernel.info 772 772 dim = base._kernel.dim 773 plot_weights(model_info, get_mesh(model_info, base_pars, dim=dim))773 weights.plot_weights(model_info, get_mesh(model_info, base_pars, dim=dim)) 774 774 if opts['plot']: 775 775 import matplotlib.pyplot as plt … … 1353 1353 #import pprint; pprint.pprint(model_info) 1354 1354 1355 # Hack to load user-defined distributions; run through all parameters 1356 # and make sure any pd_type parameter is a defined distribution. 1357 if (any(p.endswith('pd_type') and v not in weights.MODELS 1358 for p, v in pars.items()) or 1359 any(p.endswith('pd_type') and v not in weights.MODELS 1360 for p, v in pars2.items())): 1361 weights.load_weights() 1362 1355 1363 if opts['show_pars']: 1356 1364 if model_info.name != model_info2.name or pars != pars2:
Note: See TracChangeset
for help on using the changeset viewer.