Changeset b297ba9 in sasmodels for sasmodels/compare.py
- Timestamp:
- Mar 20, 2019 5:03:50 PM (5 years ago)
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/compare.py
rc1799d3 rb297ba9 725 725 set_integration_size(model_info, ngauss) 726 726 727 if (dtype != "default" and not dtype.endswith('!') 727 if (dtype != "default" and not dtype.endswith('!') 728 728 and not (kernelcl.use_opencl() or kernelcuda.use_cuda())): 729 729 raise RuntimeError("OpenCL not available " + kernelcl.OPENCL_ERROR) … … 772 772 opts['pars'] = parse_pars(opts, maxdim=maxdim) 773 773 if opts['pars'] is None: 774 return 774 return limits 775 775 result = run_models(opts, verbose=True) 776 776 if opts['plot']: … … 822 822 args = dict((k, v) for k, v in args.items() 823 823 if "_pd" not in k 824 825 824 and ":" not in k 825 and k not in ("background", "scale", "theta", "phi", "psi")) 826 826 args = args.copy() 827 827 … … 896 896 # work with trimmed data, not the full set 897 897 sorted_err = np.sort(abs(err.compressed())) 898 if len(sorted_err)== 0:898 if sorted_err.size == 0: 899 899 print(label + " no valid values") 900 900 return
Note: See TracChangeset
for help on using the changeset viewer.