Changeset f691fac in sasmodels


Ignore:
Timestamp:
Mar 28, 2019 11:13:25 AM (4 months ago)
Author:
Paul Kienzle <pkienzle@…>
Branches:
master, ticket-1257-vesicle-product, ticket_1156, ticket_822_more_unit_tests
Children:
6808ffe
Parents:
9562dd2
Message:

fix test breakage when when multiple structure factor tests

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/model_test.py

    rf942f4d rf691fac  
    247247                                           platform=self.platform) 
    248248                    # run the tests 
    249                     self.info = ps_model.info 
    250                     #print("SELF.INFO PARAMS!!!",[p.id for p in self.info.parameters.call_parameters]) 
    251                     #print("PS MODEL PARAMETERS:",[p.id for p in ps_model.info.parameters.call_parameters]) 
    252249                    results.append(self.run_one(ps_model, ps_test)) 
    253250 
     
    307304            """Run a single test case.""" 
    308305            user_pars, x, y = test[:3] 
    309             pars = expand_pars(self.info.parameters, user_pars) 
    310             invalid = invalid_pars(self.info.parameters, pars) 
     306            pars = expand_pars(model.info.parameters, user_pars) 
     307            invalid = invalid_pars(model.info.parameters, pars) 
    311308            if invalid: 
    312309                raise ValueError("Unknown parameters in test: " + ", ".join(invalid)) 
Note: See TracChangeset for help on using the changeset viewer.