Changes in sasmodels/compare.py [d0fdba2:bd7630d] in sasmodels
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/compare.py
rd0fdba2 rbd7630d 41 41 from . import kerneldll 42 42 from . import kernelcl 43 from . import weights44 43 from .data import plot_theory, empty_data1D, empty_data2D, load_data 45 44 from .direct_model import DirectModel, get_mesh 46 45 from .generate import FLOAT_RE, set_integration_size 46 from .weights import plot_weights 47 47 48 48 # pylint: disable=unused-import … … 114 114 115 115 === environment variables === 116 -DSAS_MODELPATH=~/.sasmodels/custom_models sets path to custom models 117 -DSAS_WEIGHTS_PATH=~/.sasview/weights sets path to custom distributions 116 -DSAS_MODELPATH=path sets directory containing custom models 118 117 -DSAS_OPENCL=vendor:device|none sets the target OpenCL device 119 118 -DXDG_CACHE_HOME=~/.cache sets the pyopencl cache root (linux only) 120 119 -DSAS_COMPILER=tinycc|msvc|mingw|unix sets the DLL compiler 121 -DSAS_OPENMP= 0 set to 1 to turnon OpenMP for the DLLs122 -DSAS_DLL_PATH= ~/.sasmodels/compiled_models sets the DLL cache120 -DSAS_OPENMP=1 turns on OpenMP for the DLLs 121 -DSAS_DLL_PATH=path sets the path to the compiled modules 123 122 124 123 The interpretation of quad precision depends on architecture, and may … … 784 783 model_info = base._kernel.info 785 784 dim = base._kernel.dim 786 weights.plot_weights(model_info, get_mesh(model_info, base_pars, dim=dim))785 plot_weights(model_info, get_mesh(model_info, base_pars, dim=dim)) 787 786 if opts['show_profile']: 788 787 import pylab … … 1289 1288 1290 1289 if opts['datafile'] is not None: 1291 data = load_data(os.path.expanduser(opts['datafile'])) 1290 data0 = load_data(os.path.expanduser(opts['datafile'])) 1291 data = data0, data0 1292 1292 else: 1293 1293 # Hack around the fact that make_data doesn't take a pair of resolutions … … 1440 1440 #import pprint; pprint.pprint(model_info) 1441 1441 1442 # Hack to load user-defined distributions; run through all parameters1443 # and make sure any pd_type parameter is a defined distribution.1444 if (any(p.endswith('pd_type') and v not in weights.MODELS1445 for p, v in pars.items()) or1446 any(p.endswith('pd_type') and v not in weights.MODELS1447 for p, v in pars2.items())):1448 weights.load_weights()1449 1450 1442 if opts['show_pars']: 1451 1443 if model_info.name != model_info2.name or pars != pars2:
Note: See TracChangeset
for help on using the changeset viewer.