Changeset 425ef040 in sasview


Ignore:
Timestamp:
Oct 30, 2009 11:20:41 AM (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:
c93cc15
Parents:
77f6a8b
Message:

guithread change on data2D

File:
1 edited

Legend:

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

    r8d78399 r425ef040  
    3636            msg= str(data1d.__class__.__name__) 
    3737            raise ValueError, "need Data1D to compute chisqr. Current class %s"%msg 
    38          
    39         self.fitdata= FitData1D(data1d, smearer=smearer) 
     38 
     39        self.fitdata= FitData1D(x=data1d.x,y=data1d.y,dx=data1d.dx,dy=data1d.dy, smearer=smearer) 
    4040        self.fitdata.setFitRange(qmin=qmin,qmax=qmax) 
    4141        self.model = model 
     
    105105            msg= str(data2d.__class__.__name__) 
    106106            raise ValueError, "need Data2D to compute chisqr. Current class %s"%msg 
    107          
    108         self.fitdata = FitData2D(data2d) 
     107        
     108        self.fitdata = FitData2D(sans_data2d=data2d ,data=data2d.data, err_data=data2d.err_data) 
    109109        self.fitdata.setFitRange(qmin=qmin,qmax=qmax) 
    110110      
Note: See TracChangeset for help on using the changeset viewer.