Changeset d0d2ab5 in sasview


Ignore:
Timestamp:
Mar 25, 2009 5:49:28 PM (15 years ago)
Author:
Gervaise Alina <gervyh@…>
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, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
2549c1b
Parents:
ac11e40
Message:

simpage

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sansview/perspectives/fitting/simfitpage.py

    rac11e40 rd0d2ab5  
    135135            ## display constraint fields 
    136136            if self.show_constraint.GetValue(): 
    137                 self.sizer_couples.Clear(True)  
     137                self._hide_constraint() 
    138138                self._show_constraint() 
    139139                return 
     
    163163                    self.cb1.SetValue(False) 
    164164        ## display constraint fields 
    165         if len(self.model_toFit)>=2: 
     165        if len(self.model_toFit)>=2 and len(self.model_list)==len(self.model_toFit): 
    166166            self._store_model() 
    167167            if self.show_constraint.GetValue(): 
     168                self._hide_constraint() 
    168169                self._show_constraint() 
    169170                           
     
    176177            ## display constraint fields 
    177178            if self.show_constraint.GetValue(): 
    178                 self.sizer_couples.Clear(True)  
     179                self._hide_constraint() 
    179180                self._show_constraint() 
    180181                return 
    181182        else: 
    182183            self.cb1.SetValue(False) 
     184            if len(self.model_toFit)>=2: 
     185                self._store_model() 
     186                if self.show_constraint.GetValue(): 
     187                    self._show_constraint() 
     188                    return 
    183189            ##constraint info 
    184190            self._hide_constraint() 
Note: See TracChangeset for help on using the changeset viewer.