Ignore:
Timestamp:
Oct 5, 2011 1:14:09 PM (13 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:
634ca14
Parents:
0f17dd9
Message:

make sure all plot are mapped to the correct data

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fittingview/src/sans/perspectives/fitting/fitproblem.py

    rf64a4b7 r41661a0  
    135135        Get graph_id 
    136136        """   
     137    def set_result(self, result): 
     138        """ 
     139        """ 
     140 
     141    def get_result(self): 
     142        """ 
     143        get result  
     144        """    
     145 
    137146    
    138147class FitProblemDictionary(FitProblemComponent, dict): 
     
    419428        return self.itervalues() 
    420429     
    421     def set_result(self, batch_inputs, batch_outputs): 
     430    def  set_result(self, result, fid): 
     431        """ 
     432        """ 
     433        if fid in self.iterkeys(): 
     434            self[fid].set_result(result) 
     435             
     436    def set_batch_result(self, batch_inputs, batch_outputs): 
    422437        """ 
    423438        set a list of result 
     
    425440        self.batch_inputs = batch_inputs 
    426441        self.batch_outputs = batch_outputs 
    427                  
    428     def get_result(self): 
     442              
     443    def get_result(self, fid): 
     444        """ 
     445        get result  
     446        """    
     447        if fid in self.iterkeys(): 
     448            return self[fid].get_result() 
     449             
     450    def get_batch_result(self): 
    429451        """ 
    430452        get result  
     
    689711        """   
    690712        return self.graph_id 
    691     
     713     
     714    def set_result(self, result): 
     715        """ 
     716        """ 
     717        self.result = result 
     718         
     719    def get_result(self): 
     720        """ 
     721        get result  
     722        """    
     723        return self.result 
Note: See TracChangeset for help on using the changeset viewer.