Changeset b297ba9 in sasmodels for sasmodels/compare.py


Ignore:
Timestamp:
Mar 20, 2019 5:03:50 PM (5 years ago)
Author:
Paul Kienzle <pkienzle@…>
Branches:
master, core_shell_microgels, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
Children:
4e28511
Parents:
0d362b7
Message:

lint

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/compare.py

    rc1799d3 rb297ba9  
    725725        set_integration_size(model_info, ngauss) 
    726726 
    727     if (dtype != "default" and not dtype.endswith('!')  
     727    if (dtype != "default" and not dtype.endswith('!') 
    728728            and not (kernelcl.use_opencl() or kernelcuda.use_cuda())): 
    729729        raise RuntimeError("OpenCL not available " + kernelcl.OPENCL_ERROR) 
     
    772772        opts['pars'] = parse_pars(opts, maxdim=maxdim) 
    773773        if opts['pars'] is None: 
    774             return 
     774            return limits 
    775775        result = run_models(opts, verbose=True) 
    776776        if opts['plot']: 
     
    822822    args = dict((k, v) for k, v in args.items() 
    823823                if "_pd" not in k 
    824                    and ":" not in k 
    825                    and k not in ("background", "scale", "theta", "phi", "psi")) 
     824                and ":" not in k 
     825                and k not in ("background", "scale", "theta", "phi", "psi")) 
    826826    args = args.copy() 
    827827 
     
    896896    # work with trimmed data, not the full set 
    897897    sorted_err = np.sort(abs(err.compressed())) 
    898     if len(sorted_err) == 0: 
     898    if sorted_err.size == 0: 
    899899        print(label + "  no valid values") 
    900900        return 
Note: See TracChangeset for help on using the changeset viewer.