Changeset a06af5d in sasmodels


Ignore:
Timestamp:
Nov 2, 2017 3:35:12 PM (7 years ago)
Author:
Paul Kienzle <pkienzle@…>
Branches:
master, core_shell_microgels, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
Children:
cf8b630
Parents:
129bdc4
Message:

fix models with hidden parameters to work from sasview again

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/sasview_model.py

    r904cd9c ra06af5d  
    205205                                           structure_factor._model_info) 
    206206    ConstructedModel = make_model_from_info(model_info) 
    207     return ConstructedModel(form_factor.multiplicity)     
     207    return ConstructedModel(form_factor.multiplicity) 
    208208 
    209209 
     
    763763                # For hidden parameters use the default value. 
    764764                default = self._model_info.parameters.defaults.get(par.name, np.NaN) 
    765                 return [default], [1.0] 
     765                return default, [default], [1.0] 
    766766        elif par.polydisperse: 
    767767            value = self.params[par.name] 
Note: See TracChangeset for help on using the changeset viewer.