Changeset 286bb6c in sasview for sansview/perspectives
- Timestamp:
- Apr 8, 2010 6:30:04 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:
- c81140c
- Parents:
- 2fff4db
- Location:
- sansview/perspectives/fitting
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sansview/perspectives/fitting/fitpanel.py
ra704bb5 r286bb6c 335 335 #delete the previous theory page and add a new one 336 336 name, panel = self.opened_pages[type] 337 self.manager.reset_plot_panel(panel.get_data())337 #self.manager.reset_plot_panel(panel.get_data()) 338 338 #delete the existing page and replace it 339 339 index = self.GetPageIndex(panel) -
sansview/perspectives/fitting/fitting.py
r2fff4db r286bb6c 15 15 from copy import deepcopy 16 16 17 from DataLoader.data_info import Data1D as LoaderData1D18 17 from danse.common.plottools.PlotPanel import PlotPanel 19 18 … … 568 567 raise ValueError, "create_fittable_data1D expects Data1D" 569 568 #For prview the theory is not a subclass of DataLoader.Data1D 570 if not issubclass(data.__class__, LoaderData1D): 569 #if not issubclass(data.__class__, LoaderData1D): must be used 570 #for checking 571 if not hasattr(data, "is_data"): 571 572 if class_name == 'Theory1D': 572 573 temp_data = Theory1D(x=data.x, y=data.y, dy=data.y) 573 574 temp_data.copy_from_datainfo(data1d=data) 574 575 temp_data.name = data.name 576 data = temp_data 575 577 if class_name == 'Data1D': 576 578 temp_data = Data1D(x=data.x, y=data.y, dx=data.dx, dy=data.y) 577 temp_data.copy_from_datainfo(data =data)579 temp_data.copy_from_datainfo(data1d=data) 578 580 temp_data.name = data.name 579 data = temp_data581 data = temp_data 580 582 581 583 #get the appropriate dy
Note: See TracChangeset
for help on using the changeset viewer.