Changeset 914a499 in sasview


Ignore:
Timestamp:
Mar 10, 2009 2:50:56 PM (16 years ago)
Author:
Jae Cho <jhjcho@…>
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:
5150250
Parents:
bc3dd65d
Message:

Added dx

File:
1 edited

Legend:

Unmodified
Added
Removed
  • park_integration/AbstractFitEngine.py

    rc79ee796 r914a499  
    413413            ytemp=[] 
    414414            dytemp=[] 
     415            dxtemp=[] 
    415416            self.mini=None 
    416417            self.maxi=None 
     
    436437                    else: 
    437438                        raise RuntimeError, "Fit._concatenateData: y-errors missing" 
    438             data= Data(x=xtemp,y=ytemp,dy=dytemp) 
     439                    if data.dx is not None and len(data.dx)==len(data.x):    
     440                        dxtemp.append(data.dx[i]) 
     441                    else: 
     442                        raise RuntimeError, "Fit._concatenateData: dQ-errors missing" 
     443            data= Data(x=xtemp,y=ytemp,dy=dytemp, dx=dxtemp) 
    439444            data.setFitRange(self.mini, self.maxi) 
    440445            return data 
     
    482487        else: 
    483488            fitdata=FitData1D(data, smearer) 
    484         
    485489        fitdata.setFitRange(qmin=qmin,qmax=qmax, ymin=ymin,ymax=ymax) 
    486490        #A fitArrange is already created but contains model only at Uid 
     
    492496            fitproblem.add_data(fitdata) 
    493497            self.fitArrangeDict[Uid]=fitproblem     
    494     
     498 
    495499    def get_model(self,Uid): 
    496500        """  
Note: See TracChangeset for help on using the changeset viewer.