Changeset 6318298 in sasview


Ignore:
Timestamp:
Apr 14, 2010 12:39:12 PM (15 years ago)
Author:
Jae Cho <jhjcho@…>
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:
36bc34e
Parents:
51a71a3
Message:

fixed last mistakes

Location:
sansview/perspectives/fitting
Files:
2 edited

Legend:

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

    r51a71a3 r6318298  
    10081008        #self._undo.Enable(True) 
    10091009        # check if 2d data 
    1010         if self.data.__class__.__name__ !="Data1D": 
     1010        if self.data.__class__.__name__ =="Data2D": 
    10111011            is_2Ddata = True 
    10121012        if self.model !=None: 
     
    10641064 
    10651065        # check if 2d data 
    1066         if self.data.__class__.__name__ !="Data1D": 
     1066        if self.data.__class__.__name__ =="Data2D": 
    10671067            is_2Ddata = True 
    10681068         
     
    16291629            self.structurebox.Enable() 
    16301630            self.text2.Enable() 
    1631         if self.data.__class__.__name__ !="Data1D": 
     1631        if self.data.__class__.__name__ =="Data2D": 
    16321632            self.smear_description_2d.Show(True) 
    16331633             
     
    17271727        for item in list: 
    17281728            #skip angle parameters for 1D 
    1729             if self.data.__class__.__name__ !="Data1D": 
     1729            if self.data.__class__.__name__ !="Data2D": 
    17301730                if item in self.orientation_params: 
    17311731                    continue 
     
    19931993                self.disp_cb_dict[p] = wx.RadioButton(self, -1, p, (10, 10)) 
    19941994                self.state.disp_cb_dict[p]=  self.disp_cb_dict[p].GetValue() 
    1995                 if not (self.enable2D or self.data.__class__.__name__ !="Data1D"): 
     1995                if not (self.enable2D or self.data.__class__.__name__ =="Data2D"): 
    19961996                    self.disp_cb_dict[p].Hide() 
    19971997                else: 
     
    20412041         
    20422042        #check if it is 2D data 
    2043         if self.data.__class__.__name__ != 'Data1D': 
     2043        if self.data.__class__.__name__ == 'Data2D': 
    20442044            is_2Ddata = True 
    20452045             
     
    21582158            return 
    21592159        ##For 3 different cases: Data2D, Data1D, and theory 
    2160         if self.data.__class__.__name__ != "Data1D": 
     2160        if self.data.__class__.__name__ == "Data2D": 
    21612161            data_min= 0 
    21622162            x= max(math.fabs(self.data.xmin), math.fabs(self.data.xmax))  
     
    21642164            self.qmin_x = data_min 
    21652165            self.qmax_x = math.sqrt(x*x + y*y) 
    2166         elif self.data.__class__.__name__ == "Data1D": 
     2166        elif self.data.__class__.__name__ != "Data2D": 
    21672167            self.qmin_x = min(self.data.x) 
    21682168            self.qmax_x = max(self.data.x) 
  • sansview/perspectives/fitting/fitpage.py

    r51a71a3 r6318298  
    179179         
    180180        # Check if data is 2D 
    181         if self.data.__class__.__name__ != 'Data1D': 
     181        if self.data.__class__.__name__ == 'Data2D': 
    182182            is_2Ddata = True 
    183183             
Note: See TracChangeset for help on using the changeset viewer.