Changeset 7c3fb15 in sasmodels


Ignore:
Timestamp:
Apr 17, 2018 8:16:12 AM (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:
c11d09f, 1fbadb2
Parents:
dc6f601
Message:

code cleanup: correct a type sig and fix an exception string

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/sasview_model.py

    r05df1de r7c3fb15  
    719719 
    720720    def set_dispersion(self, parameter, dispersion): 
    721         # type: (str, weights.Dispersion) -> Dict[str, Any] 
     721        # type: (str, weights.Dispersion) -> None 
    722722        """ 
    723723        Set the dispersion object for a model parameter 
     
    742742            self.dispersion[parameter] = dispersion.get_pars() 
    743743        else: 
    744             raise ValueError("%r is not a dispersity or orientation parameter") 
     744            raise ValueError("%r is not a dispersity or orientation parameter" 
     745                             % parameter) 
    745746 
    746747    def _dispersion_mesh(self): 
Note: See TracChangeset for help on using the changeset viewer.