Changeset 9404dd3 in sasmodels for sasmodels/model_test.py
- Timestamp:
- Dec 4, 2015 12:41:47 PM (8 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:
- eaca9eb
- Parents:
- 7bb290c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/model_test.py
r2781b2e r9404dd3 68 68 model_definition = load_model_definition(model_name) 69 69 70 #print '------'71 #print 'found tests in', model_name72 #print '------'70 #print('------') 71 #print('found tests in', model_name) 72 #print('------') 73 73 74 74 # if ispy then use the dll loader to call pykernel … … 93 93 test_method_name, 94 94 platform="ocl", dtype='single') 95 #print "defining", test_name95 #print("defining", test_name) 96 96 suite.addTest(test) 97 97 … … 144 144 pass 145 145 146 except Exception ,exc:146 except Exception as exc: 147 147 annotate_exception(exc, self.test_name) 148 148 raise … … 201 201 if models and models[0] == 'opencl': 202 202 if not HAVE_OPENCL: 203 print >>sys.stderr, "opencl is not available"203 print("opencl is not available") 204 204 return 1 205 205 loaders = ['opencl'] … … 215 215 loaders = ['opencl', 'dll'] 216 216 if not models: 217 print >>sys.stderr,"""\217 print("""\ 218 218 usage: 219 219 python -m sasmodels.model_test [opencl|dll|opencl_and_dll] model1 model2 ... … … 221 221 If model1 is 'all', then all except the remaining models will be tested. 222 222 If no compute target is specified, then models will be tested with both opencl 223 and dll; the compute target is ignored for pure python models.""" 223 and dll; the compute target is ignored for pure python models.""") 224 224 225 225 return 1
Note: See TracChangeset
for help on using the changeset viewer.