Changeset 47fb816 in sasmodels for sasmodels/core.py
- Timestamp:
- Oct 12, 2018 3:44:26 PM (6 years ago)
- Branches:
- master, core_shell_microgels, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
- Children:
- b0de252
- Parents:
- 0db7dbd (diff), 353e899 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/core.py
r0db7dbd r47fb816 43 43 if CUSTOM_MODEL_PATH == "": 44 44 CUSTOM_MODEL_PATH = joinpath(os.path.expanduser("~"), ".sasmodels", "custom_models") 45 if not os.path.isdir(CUSTOM_MODEL_PATH):46 os.makedirs(CUSTOM_MODEL_PATH)45 #if not os.path.isdir(CUSTOM_MODEL_PATH): 46 # os.makedirs(CUSTOM_MODEL_PATH) 47 47 48 48 # TODO: refactor composite model support … … 242 242 if not callable(model_info.Iq): 243 243 source = generate.make_source(model_info)['dll'] 244 old_path = kerneldll. DLL_PATH244 old_path = kerneldll.SAS_DLL_PATH 245 245 try: 246 kerneldll. DLL_PATH = path246 kerneldll.SAS_DLL_PATH = path 247 247 dll = kerneldll.make_dll(source, model_info, dtype=numpy_dtype) 248 248 finally: 249 kerneldll. DLL_PATH = old_path249 kerneldll.SAS_DLL_PATH = old_path 250 250 compiled_dlls.append(dll) 251 251 return compiled_dlls
Note: See TracChangeset
for help on using the changeset viewer.