Changeset f8ce013 in sasview


Ignore:
Timestamp:
Oct 16, 2008 9:25:21 AM (16 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:
bcd6d51
Parents:
fee780b
Message:

set_data modified

Location:
park_integration
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • park_integration/AbstractFitEngine.py

    r7d0c1a8 rf8ce013  
    395395            @param Uid: unique key corresponding to a fitArrange object with data 
    396396        """ 
     397        if data.__class__.__name__=='MetaData2D': 
     398            fitdata=FitData2D(data) 
     399        else: 
     400            fitdata=FitData1D(data) 
    397401        if qmin !=None and qmax !=None: 
    398             data.setFitRange(mini=qmin,maxi=qmax) 
     402            fitdata.setFitRange(mini=qmin,maxi=qmax) 
    399403        #A fitArrange is already created but contains model only at Uid 
    400404        if self.fitArrangeDict.has_key(Uid): 
    401             self.fitArrangeDict[Uid].add_data(data) 
     405            self.fitArrangeDict[Uid].add_data(fitdata) 
    402406        else: 
    403407        #no fitArrange object has been create with this Uid 
    404408            fitproblem= FitArrange() 
    405             fitproblem.add_data(data) 
     409            fitproblem.add_data(fitdata) 
    406410            self.fitArrangeDict[Uid]=fitproblem     
    407411    
  • park_integration/ScipyFitting.py

    r7d0c1a8 rf8ce013  
    8484        data=listdata 
    8585        #Assign a fit range is not boundaries were given 
    86         if data.__class__.__name__=='Data1D': 
     86        if not hasattr(data, 'image'): 
    8787            if qmin==None: 
    8888                qmin= min(data.x) 
Note: See TracChangeset for help on using the changeset viewer.