Ignore:
Timestamp:
Mar 11, 2011 4:39:00 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:
ee2b492
Parents:
14cd91b1
Message:

working on guiframe

File:
1 edited

Legend:

Unmodified
Added
Removed
  • guiframe/local_perspectives/data_loader/data_loader.py

    re75b5fa re88ebfd  
    139139        message = "" 
    140140        log_msg = '' 
    141         output = [] 
     141        output = {} 
    142142        error_message = "" 
    143143        for p_file in path: 
     
    156156                    for item in temp: 
    157157                        data = self.parent.create_gui_data(item, p_file) 
    158                         output.append(data) 
     158                        output[data.id] = data 
    159159                else: 
    160160                    data = self.parent.create_gui_data(temp, p_file) 
    161                     output.append(data) 
     161                    output[data.id] = data 
    162162                message = "Loading Data..." + str(p_file) + "\n" 
    163163                self.load_update(output=output, message=message) 
     
    189189        if error_message != "": 
    190190            self.load_error(error_message) 
    191         self.parent.add_data(output) 
     191        self.parent.add_data(data_list=output) 
    192192    
    193193     
Note: See TracChangeset for help on using the changeset viewer.