Changeset bcd3aa3 in sasmodels
- Timestamp:
- Mar 23, 2015 1:48:28 PM (10 years ago)
- Branches:
- master, core_shell_microgels, costrafo411, magnetic_model, release_v0.94, release_v0.95, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
- Children:
- 0a33675
- Parents:
- 7954f5c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/core.py
raa4946b rbcd3aa3 60 60 61 61 62 def isstr(s): 63 try: s + '' 64 except: return False 65 return True 66 62 67 def load_model(model_definition, dtype="single", platform="ocl"): 63 68 """ … … 66 71 This will return an OpenCL model, a DLL model or a python model depending 67 72 on the model and the computing platform. 73 74 *model_definition* is the python module which defines the model. If the 75 model name is given instead, then :func:`load_model_definition` will be 76 called with the model name. 68 77 69 78 *dtype* indicates whether the model should use single or double precision … … 75 84 otherwise it uses the default "ocl". 76 85 """ 86 if isstr(model_definition): 87 model_definition = load_model_definition(model_definition) 77 88 source, info = generate.make(model_definition) 78 89 if callable(info.get('Iq', None)):
Note: See TracChangeset
for help on using the changeset viewer.