Changes in / [630156b:a75347f] in sasmodels
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/sasview_model.py
r749a7d4 r9dcb21d 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 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 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 599 596 600 597 def calculate_Iq(self, qx, qy=None): … … 637 634 result = calculator(call_details, values, cutoff=self.cutoff, 638 635 magnetic=is_magnetic) 636 self._intermediate_results = getattr(calculator, 'results', None) 639 637 calculator.release() 640 638 self._model.release()
Note: See TracChangeset
for help on using the changeset viewer.