Ignore:
Timestamp:
Mar 11, 2011 10:14:57 AM (14 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:
a3149c5
Parents:
aae7a8d
Message:

update plugin

File:
1 edited

Legend:

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

    rae4ade7 rb2d9826  
    256256        return True 
    257257     
    258     def set_data(self, data_list): 
     258    def set_data(self, data_list=None, theory_list=None): 
    259259        """ 
    260260        receive a list of data to fit 
    261261        """ 
     262        if data_list is None: 
     263            data_list = [] 
    262264        selected_data_list = [] 
    263265        if len(data_list) > MAX_NBR_DATA : 
     
    11631165            if data is None: 
    11641166                theory_data = self.page_finder[id].get_theory_data() 
    1165                 self.parent.add_data_helper(data_list=[theory_data]) 
     1167                self.parent.add_data_helper({theory_data.id:theory_data}) 
    11661168                data_id = theory_data.id 
    11671169            else: 
     
    12491251        if data is None: 
    12501252            theory_data = self.page_finder[id].get_theory_data() 
    1251             self.parent.add_data_helper(data_list=[theory_data]) 
     1253            self.parent.add_data_helper({theory_data.id:theory_data}) 
    12521254            data_id = theory_data.id 
    12531255        else: 
Note: See TracChangeset for help on using the changeset viewer.