Changeset 4ed199e in sasview for src/sas/sasgui/perspectives/fitting


Ignore:
Timestamp:
Oct 8, 2016 3:29:53 PM (8 years ago)
Author:
wojciech
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:
1404cce
Parents:
47f2b5d (diff), b4818d9 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
git-author:
wpotrzebowski <Wojciech.Potrzebowski@…> (10/08/16 15:22:49)
git-committer:
wpotrzebowski <Wojciech.Potrzebowski@…> (10/08/16 15:29:53)
Message:

Removing an extra Iq evaluation when model is loaded

Location:
src/sas/sasgui/perspectives/fitting
Files:
2 edited

Legend:

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

    r47f2b5d r4ed199e  
    514514    def initialize_combox(self): 
    515515        """ 
    516         put default value in the combobox 
    517         """ 
    518         ## fill combox box 
    519         if self.model_list_box is None: 
    520             return 
    521         if len(self.model_list_box) > 0: 
     516        put default value in the combo box 
     517        """ 
     518        if self.model_list_box is not None and len(self.model_list_box) > 0: 
    522519            self._populate_box(self.structurebox, 
    523520                               self.model_list_box["Structure Factors"]) 
     
    528525            self.structurebox.Disable() 
    529526            self.text2.Disable() 
    530  
    531             if self.model.__class__ in self.model_list_box["P(Q)*S(Q)"]: 
    532                 self.structurebox.Show() 
    533                 self.text2.Show() 
    534                 self.structurebox.Enable() 
    535                 self.text2.Enable() 
    536527 
    537528    def set_dispers_sizer(self): 
     
    19621953            form_factor = self.formfactorbox.GetClientData(f_id) 
    19631954 
    1964         if not form_factor in  self.model_list_box["multiplication"]: 
     1955        if form_factor is None or not form_factor.is_form_factor: 
    19651956            self.structurebox.Hide() 
    19661957            self.text2.Hide() 
  • src/sas/sasgui/perspectives/fitting/fitpage.py

    r4c3be25 rb4818d9  
    364364        self.Bind(wx.EVT_RADIOBUTTON, self.onSlitSmear, 
    365365                  id=self.slit_smearer.GetId()) 
    366         self.disable_smearer.SetValue(True) 
     366        self.enable_smearer.SetValue(True) 
    367367 
    368368        sizer_smearer.Add(self.disable_smearer, 0, wx.LEFT, 10) 
Note: See TracChangeset for help on using the changeset viewer.