Changeset 693ab78 in sasview
- Timestamp:
- Oct 20, 2008 10:37:51 AM (16 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:
- 48c7477
- Parents:
- 24120ab
- Location:
- sansview/perspectives/fitting
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
sansview/perspectives/fitting/fitpage1D.py
r9d31a8b r693ab78 183 183 @return residuals 184 184 """ 185 print self.data.x 186 print self.data.y 187 print self.data.dy 188 185 189 flag=self.checkFitRange() 186 190 if flag== True: -
sansview/perspectives/fitting/fitpanel.py
r9d31a8b r693ab78 78 78 name = 'Fit' 79 79 if self.fit_page_name != name: 80 if data.__class__.__name__==' MetaData2D':80 if data.__class__.__name__=='Data2D': 81 81 from fitpage2D import FitPage2D 82 82 panel = FitPage2D(self.nb,data, -1) -
sansview/perspectives/fitting/fitting.py
r4274c0e r693ab78 5 5 from copy import deepcopy 6 6 from danse.common.plottools.plottables import Data1D, Theory1D, Data2D 7 8 from sans.guiframe.data_loader import MetaData1D, MetaTheory1D, MetaData2D9 7 from danse.common.plottools.PlotPanel import PlotPanel 10 8 from sans.guicomm.events import NewPlotEvent, StatusEvent … … 85 83 self.graph=graph 86 84 for item in graph.plottables: 87 if item.__class__.__name__ is " MetaData2D":85 if item.__class__.__name__ is "Data2D": 88 86 return [["Fit Data2D", "Dialog with fitting parameters ", self._onSelect]] 89 87 else: 90 if item.name==graph.selected_plottable and (item.__class__.__name__ is "MetaData1D"or\91 item.__class__.__name__ is "Data1D" ):88 if item.name==graph.selected_plottable and\ 89 item.__class__.__name__ is "Data1D": 92 90 return [["Fit Data1D", "Dialog with fitting parameters ", self._onSelect]] 93 91 return [] … … 145 143 self.panel = event.GetEventObject() 146 144 for item in self.panel.graph.plottables: 147 if item.name == self.panel.graph.selected_plottable or item.__class__.__name__ is "MetaData2D": 145 if item.name == self.panel.graph.selected_plottable or\ 146 item.__class__.__name__ is "Data2D": 148 147 #find a name for the page created for notebook 149 148 try: … … 474 473 break 475 474 476 if data!=None and data.__class__.__name__ != ' MetaData2D':475 if data!=None and data.__class__.__name__ != 'Data2D': 477 476 theory = Theory1D(x=[], y=[]) 478 477 theory.name = "Model"
Note: See TracChangeset
for help on using the changeset viewer.