Changeset bd21b12 in sasmodels
- Timestamp:
- Aug 2, 2017 4:09:33 PM (7 years ago)
- Branches:
- master, core_shell_microgels, costrafo411, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
- Children:
- 8c89d06
- Parents:
- 8f04da4
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/compare.py
r8f04da4 rbd21b12 659 659 model = core.build_model(model_info, dtype=dtype, platform="ocl") 660 660 calculator = DirectModel(data, model, cutoff=cutoff) 661 calculator.engine = "OCL%s"%DTYPE_MAP[ dtype]661 calculator.engine = "OCL%s"%DTYPE_MAP[str(model.dtype)] 662 662 return calculator 663 663 … … 730 730 if dtype == 'sasview': 731 731 return eval_sasview(model_info, data) 732 elif dtype.endswith('!'): 732 elif dtype is None or dtype.endswith('!'): 733 return eval_opencl(model_info, data, dtype=dtype, cutoff=cutoff) 734 else: 733 735 return eval_ctypes(model_info, data, dtype=dtype[:-1], cutoff=cutoff) 734 else:735 return eval_opencl(model_info, data, dtype=dtype, cutoff=cutoff)736 736 737 737 def _show_invalid(data, theory):
Note: See TracChangeset
for help on using the changeset viewer.