Changeset 598857b in sasmodels for sasmodels/model_test.py


Ignore:
Timestamp:
Mar 7, 2017 3:00:41 PM (7 years ago)
Author:
Paul Kienzle <pkienzle@…>
Branches:
master, core_shell_microgels, costrafo411, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
Children:
3a45c2c
Parents:
f72d70a
Message:

improve error message when GPU/CPU comparison fails

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/model_test.py

    rb216880 r598857b  
    202202                    for test, target, actual in zip(tests, self.stash[0], results): 
    203203                        assert np.all(abs(target-actual) < 5e-5*abs(actual)),\ 
    204                             "expected %s but got %s for %s"%(target, actual, test[0]) 
     204                            "GPU/CPU comparison expected %s but got %s for %s"%(target, actual, test[0]) 
    205205                else: 
    206206                    self.stash.append(results) 
Note: See TracChangeset for help on using the changeset viewer.