Changeset 9dcb21d in sasmodels


Ignore:
Timestamp:
Apr 11, 2017 10:20:36 AM (8 years ago)
Author:
butler
Branches:
master, core_shell_microgels, costrafo411, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
Children:
a75347f
Parents:
2662828
Message:

final clean up addressing #741. Removed old get_compostion_models now
that it is replaced with calc_composition_models.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/sasview_model.py

    rbf8c271 r9dcb21d  
    586586                            % type(qdist)) 
    587587 
    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 
    599  
    600  
    601588    def calc_composition_models(self, qx): 
     589        """ 
     590        returns parts of the composition model or None if not a composition 
     591        model. 
     592        """ 
    602593        with calculation_lock: 
    603594            self._calculate_Iq(qx) 
Note: See TracChangeset for help on using the changeset viewer.