Changeset 2d81cfe in sasmodels for sasmodels/model_test.py
- Timestamp:
- Nov 29, 2017 11:13:23 AM (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:
- 237b800f
- Parents:
- a839b22
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/model_test.py
r20fe0cd r2d81cfe 63 63 from .modelinfo import expand_pars 64 64 65 # pylint: disable=unused-import 65 66 try: 66 67 from typing import List, Iterator, Callable … … 70 71 from .modelinfo import ParameterTable, ParameterSet, TestCondition, ModelInfo 71 72 from .kernel import KernelModel 73 # pylint: enable=unused-import 72 74 73 75 … … 211 213 if self.stash: 212 214 for test, target, actual in zip(tests, self.stash[0], results): 213 assert np.all(abs(target-actual) < 5e-5*abs(actual)),\ 214 "GPU/CPU comparison expected %s but got %s for %s"%(target, actual, test[0]) 215 assert np.all(abs(target-actual) < 5e-5*abs(actual)), \ 216 ("GPU/CPU comparison expected %s but got %s for %s" 217 % (target, actual, test[0])) 215 218 else: 216 219 self.stash.append(results)
Note: See TracChangeset
for help on using the changeset viewer.