Changeset 286bb6c in sasview


Ignore:
Timestamp:
Apr 8, 2010 6:30:04 PM (15 years ago)
Author:
Gervaise Alina <gervyh@…>
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
Message:

remove import of dataloader

Location:
sansview/perspectives/fitting
Files:
2 edited

Legend:

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

    ra704bb5 r286bb6c  
    335335                #delete the previous theory page and add a new one 
    336336                name, panel = self.opened_pages[type] 
    337                 self.manager.reset_plot_panel(panel.get_data()) 
     337                #self.manager.reset_plot_panel(panel.get_data()) 
    338338                #delete the existing page and replace it 
    339339                index = self.GetPageIndex(panel) 
  • sansview/perspectives/fitting/fitting.py

    r2fff4db r286bb6c  
    1515from copy import deepcopy 
    1616 
    17 from DataLoader.data_info import Data1D as LoaderData1D 
    1817from danse.common.plottools.PlotPanel import PlotPanel 
    1918 
     
    568567            raise ValueError, "create_fittable_data1D expects Data1D" 
    569568        #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"): 
    571572            if class_name == 'Theory1D': 
    572573                temp_data = Theory1D(x=data.x, y=data.y, dy=data.y) 
    573574                temp_data.copy_from_datainfo(data1d=data) 
    574575                temp_data.name = data.name 
     576                data = temp_data 
    575577            if class_name == 'Data1D': 
    576578                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) 
    578580                temp_data.name = data.name 
    579             data = temp_data 
     581                data = temp_data 
    580582         
    581583        #get the appropriate dy  
Note: See TracChangeset for help on using the changeset viewer.