Changeset 17695aa in sasmodels for sasmodels/sasview_model.py


Ignore:
Timestamp:
Oct 30, 2018 8:59:40 AM (5 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:
c1799d3
Parents:
6da1d76 (diff), c6084f1 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' into ticket-1157

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/sasview_model.py

    r6da1d76 r17695aa  
    382382            hidden.add('scale') 
    383383            hidden.add('background') 
     384 
     385        # Update the parameter lists to exclude any hidden parameters 
     386        self.magnetic_params = tuple(pname for pname in self.magnetic_params 
     387                                     if pname not in hidden) 
     388        self.orientation_params = tuple(pname for pname in self.orientation_params 
     389                                        if pname not in hidden) 
    384390 
    385391        self._persistency_dict = {} 
     
    796802            return value, [value], [1.0] 
    797803 
     804    @classmethod 
     805    def runTests(cls): 
     806        """ 
     807        Run any tests built into the model and captures the test output. 
     808 
     809        Returns success flag and output 
     810        """ 
     811        from .model_test import check_model 
     812        return check_model(cls._model_info) 
     813 
    798814def test_cylinder(): 
    799815    # type: () -> float 
     
    911927    Model = _make_standard_model('sphere') 
    912928    model = Model() 
    913     model.setParam('M0:sld', 8) 
     929    model.setParam('sld_M0', 8) 
    914930    q = np.linspace(-0.35, 0.35, 500) 
    915931    qx, qy = np.meshgrid(q, q) 
Note: See TracChangeset for help on using the changeset viewer.