Changes in sasmodels/compare.py [d0fdba2:bd7630d] in sasmodels


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/compare.py

    rd0fdba2 rbd7630d  
    4141from . import kerneldll 
    4242from . import kernelcl 
    43 from . import weights 
    4443from .data import plot_theory, empty_data1D, empty_data2D, load_data 
    4544from .direct_model import DirectModel, get_mesh 
    4645from .generate import FLOAT_RE, set_integration_size 
     46from .weights import plot_weights 
    4747 
    4848# pylint: disable=unused-import 
     
    114114 
    115115    === 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 
    118117    -DSAS_OPENCL=vendor:device|none sets the target OpenCL device 
    119118    -DXDG_CACHE_HOME=~/.cache sets the pyopencl cache root (linux only) 
    120119    -DSAS_COMPILER=tinycc|msvc|mingw|unix sets the DLL compiler 
    121     -DSAS_OPENMP=0 set to 1 to turn on OpenMP for the DLLs 
    122     -DSAS_DLL_PATH=~/.sasmodels/compiled_models sets the DLL cache 
     120    -DSAS_OPENMP=1 turns on OpenMP for the DLLs 
     121    -DSAS_DLL_PATH=path sets the path to the compiled modules 
    123122 
    124123The interpretation of quad precision depends on architecture, and may 
     
    784783            model_info = base._kernel.info 
    785784            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)) 
    787786        if opts['show_profile']: 
    788787            import pylab 
     
    12891288 
    12901289    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 
    12921292    else: 
    12931293        # Hack around the fact that make_data doesn't take a pair of resolutions 
     
    14401440    #import pprint; pprint.pprint(model_info) 
    14411441 
    1442     # Hack to load user-defined distributions; run through all parameters 
    1443     # and make sure any pd_type parameter is a defined distribution. 
    1444     if (any(p.endswith('pd_type') and v not in weights.MODELS 
    1445             for p, v in pars.items()) or 
    1446         any(p.endswith('pd_type') and v not in weights.MODELS 
    1447             for p, v in pars2.items())): 
    1448        weights.load_weights() 
    1449  
    14501442    if opts['show_pars']: 
    14511443        if model_info.name != model_info2.name or pars != pars2: 
Note: See TracChangeset for help on using the changeset viewer.