Changeset c036ddb in sasmodels for sasmodels/kerneldll.py
- Timestamp:
- Aug 7, 2018 8:45:45 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:
- 7e923c2
- Parents:
- 7b0abf8
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/kerneldll.py
r01c8d9e rc036ddb 258 258 # Note: if there is a syntax error then compile raises an error 259 259 # and the source file will not be deleted. 260 #os.unlink(filename)261 print("saving compiled file in %r"%filename)260 os.unlink(filename) 261 #print("saving compiled file in %r"%filename) 262 262 return dll 263 263 … … 377 377 self.dtype = q_input.dtype 378 378 self.dim = '2d' if q_input.is_2d else '1d' 379 self.result = np.empty(2*q_input.nq+2, q_input.dtype) 379 # leave room for f1/f2 results in case we need to compute beta for 1d models 380 num_returns = 1 if self.dim == '2d' else 2 # 381 # plus 1 for the normalization value 382 self.result = np.empty((q_input.nq+1)*num_returns, self.dtype) 380 383 self.real = (np.float32 if self.q_input.dtype == generate.F32 381 384 else np.float64 if self.q_input.dtype == generate.F64 … … 417 420 self.real(cutoff), # cutoff 418 421 ] 419 #print(self.beta_result.ctypes.data) 420 # print("Calling DLL line 397") 421 # print("values", values) 422 #print("Calling DLL") 422 423 #call_details.show(values) 423 424 step = 100
Note: See TracChangeset
for help on using the changeset viewer.