Changeset a430f5f in sasmodels for sasmodels/model_test.py


Ignore:
Timestamp:
Mar 28, 2019 8:13:16 AM (2 years ago)
Author:
richardh
Branches:
master, ticket-1257-vesicle-product, ticket_1156, ticket_822_more_unit_tests
Children:
adb84f6, 6652522
Parents:
facb052
Message:

more progress with model_test, see sphere.py

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/model_test.py

    rfacb052 ra430f5f  
    242242                    # build the P@S model 
    243243                    s_info = load_model_info(s_name) 
    244                     print("in run_all: s_info:", s_info) 
     244                    #print("in run_all: s_info:", s_info) 
    245245                    ps_info = product.make_product_info(self.info, s_info) 
    246246                    ps_model = build_model(ps_info, dtype=self.dtype, 
     
    414414    """ 
    415415    import math 
    416     shift = 10**math.ceil(math.log10(abs(target))) 
    417     return abs(target-actual)/shift < 1.5*10**-digits 
     416    shift = 10**math.ceil(math.log10(np.abs(target))) 
     417    return np.abs(target-actual)/shift < 1.5*10**-digits 
    418418 
    419419# CRUFT: old interface; should be deprecated and removed 
Note: See TracChangeset for help on using the changeset viewer.