Changeset 4e9583c in sasview for guiframe/data_manager.py


Ignore:
Timestamp:
Jul 22, 2010 12:24:33 PM (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:
cb463b4
Parents:
f5038c06
Message:

reverse guiframe

File:
1 edited

Legend:

Unmodified
Added
Removed
  • guiframe/data_manager.py

    r3c44c66 r4e9583c  
    4242        self.parent = parent 
    4343      
     44    def get_data(self, data_list={}): 
     45        """ 
     46        return  
     47        """ 
     48        if not data_list: 
     49            return self.available_data.values() 
     50        for data, path in data_list: 
     51            if data.name not in self.available_data.keys(): 
     52                self.available_data[data.name] = (data, path) 
     53        return self.available_data.values() 
     54     
    4455    def on_get_data(self, data_list, plot=False): 
    4556        """ 
     
    5364        for data, path in data_list: 
    5465            if data.name not in self.available_data.keys(): 
    55                 self.available_data[data.name] = data, path 
     66                self.available_data[data.name] = (data, path) 
    5667                if plot: 
    57                     self.data_to_plot[data.name] = data, path 
     68                    self.data_to_plot[data.name] = (data, path) 
    5869           
    5970        return self.get_sorted_list() 
Note: See TracChangeset for help on using the changeset viewer.