Changeset c1681ea in sasview for src/sas/sasgui/perspectives


Ignore:
Timestamp:
Dec 30, 2016 11:33:07 AM (8 years ago)
Author:
Doucet, Mathieu <doucetm@…>
Branches:
master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
83c09af, 27aabc1, b39debba
Parents:
b0bebdc
Message:

Protect against incomplete models.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/sasgui/perspectives/fitting/model_thread.py

    rb0bebdc rc1681ea  
    204204            s_model = self.model.s_model 
    205205            p_model = self.model.p_model 
    206         else: 
     206        elif hasattr(self.model, "get_composition_models"): 
    207207            p_model, s_model = self.model.get_composition_models() 
    208208 
Note: See TracChangeset for help on using the changeset viewer.