Changeset 17695aa in sasmodels for sasmodels/sasview_model.py
- Timestamp:
- Oct 30, 2018 8:59:40 AM (5 years ago)
- 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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/sasview_model.py
r6da1d76 r17695aa 382 382 hidden.add('scale') 383 383 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) 384 390 385 391 self._persistency_dict = {} … … 796 802 return value, [value], [1.0] 797 803 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 798 814 def test_cylinder(): 799 815 # type: () -> float … … 911 927 Model = _make_standard_model('sphere') 912 928 model = Model() 913 model.setParam(' M0:sld', 8)929 model.setParam('sld_M0', 8) 914 930 q = np.linspace(-0.35, 0.35, 500) 915 931 qx, qy = np.meshgrid(q, q)
Note: See TracChangeset
for help on using the changeset viewer.