Changes in / [a75347f:630156b] in sasmodels
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/sasview_model.py
r9dcb21d r749a7d4 148 148 _previous_name = model.name 149 149 model.name = model.id 150 150 151 151 # If the new model name is still in the model list (for instance, 152 152 # if we put a cylinder.py in our plug-in directory), then append … … 586 586 % type(qdist)) 587 587 588 def calc_composition_models(self, qx): 589 """ 590 returns parts of the composition model or None if not a composition 591 model. 592 """ 593 with calculation_lock: 594 self._calculate_Iq(qx) 595 return self._intermediate_results 588 def get_composition_models(self): 589 """ 590 Returns usable models that compose this model 591 """ 592 s_model = None 593 p_model = None 594 if hasattr(self._model_info, "composition") \ 595 and self._model_info.composition is not None: 596 p_model = _make_model_from_info(self._model_info.composition[1][0])() 597 s_model = _make_model_from_info(self._model_info.composition[1][1])() 598 return p_model, s_model 596 599 597 600 def calculate_Iq(self, qx, qy=None): … … 634 637 result = calculator(call_details, values, cutoff=self.cutoff, 635 638 magnetic=is_magnetic) 636 self._intermediate_results = getattr(calculator, 'results', None)637 639 calculator.release() 638 640 self._model.release()
Note: See TracChangeset
for help on using the changeset viewer.