Changeset 6318298 in sasview
- Timestamp:
- Apr 14, 2010 12:39:12 PM (15 years ago)
- 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
- Location:
- sansview/perspectives/fitting
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sansview/perspectives/fitting/basepage.py
r51a71a3 r6318298 1008 1008 #self._undo.Enable(True) 1009 1009 # check if 2d data 1010 if self.data.__class__.__name__ !="Data1D":1010 if self.data.__class__.__name__ =="Data2D": 1011 1011 is_2Ddata = True 1012 1012 if self.model !=None: … … 1064 1064 1065 1065 # check if 2d data 1066 if self.data.__class__.__name__ !="Data1D":1066 if self.data.__class__.__name__ =="Data2D": 1067 1067 is_2Ddata = True 1068 1068 … … 1629 1629 self.structurebox.Enable() 1630 1630 self.text2.Enable() 1631 if self.data.__class__.__name__ !="Data1D":1631 if self.data.__class__.__name__ =="Data2D": 1632 1632 self.smear_description_2d.Show(True) 1633 1633 … … 1727 1727 for item in list: 1728 1728 #skip angle parameters for 1D 1729 if self.data.__class__.__name__ !="Data 1D":1729 if self.data.__class__.__name__ !="Data2D": 1730 1730 if item in self.orientation_params: 1731 1731 continue … … 1993 1993 self.disp_cb_dict[p] = wx.RadioButton(self, -1, p, (10, 10)) 1994 1994 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"): 1996 1996 self.disp_cb_dict[p].Hide() 1997 1997 else: … … 2041 2041 2042 2042 #check if it is 2D data 2043 if self.data.__class__.__name__ != 'Data1D':2043 if self.data.__class__.__name__ == 'Data2D': 2044 2044 is_2Ddata = True 2045 2045 … … 2158 2158 return 2159 2159 ##For 3 different cases: Data2D, Data1D, and theory 2160 if self.data.__class__.__name__ != "Data1D":2160 if self.data.__class__.__name__ == "Data2D": 2161 2161 data_min= 0 2162 2162 x= max(math.fabs(self.data.xmin), math.fabs(self.data.xmax)) … … 2164 2164 self.qmin_x = data_min 2165 2165 self.qmax_x = math.sqrt(x*x + y*y) 2166 elif self.data.__class__.__name__ == "Data1D":2166 elif self.data.__class__.__name__ != "Data2D": 2167 2167 self.qmin_x = min(self.data.x) 2168 2168 self.qmax_x = max(self.data.x) -
sansview/perspectives/fitting/fitpage.py
r51a71a3 r6318298 179 179 180 180 # Check if data is 2D 181 if self.data.__class__.__name__ != 'Data1D':181 if self.data.__class__.__name__ == 'Data2D': 182 182 is_2Ddata = True 183 183
Note: See TracChangeset
for help on using the changeset viewer.