Changeset d7f727d in sasview


Ignore:
Timestamp:
Mar 16, 2011 3:32:22 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:
3658717e
Parents:
27f4bee
Message:

working data management

Location:
guiframe
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • guiframe/data_manager.py

    r665c083 rd7f727d  
    204204                        self.stored_data[new_theory.id] = selected_theory[new_theory.id] 
    205205                    else: 
    206                         msg = "Theory with ID %s " % str(theory_id) 
     206                        msg = "Theory with ID %s " % str(t_id) 
    207207                        msg += "couldn't not be frozen"  
    208208                        raise ValueError, msg 
  • guiframe/data_panel.py

    r665c083 rd7f727d  
    457457                        i_t_c = self.tree_ctrl.AppendItem(t_p_c, 
    458458                                                          process.__str__()) 
    459                     t_child.Bind(wx.EVT_TREE_CHECK, self.check_item) 
    460459                    theory_list_ctrl[theory_id] = [t_child,  
    461460                                                   i_c_c,  
  • guiframe/gui_manager.py

    r665c083 rd7f727d  
    13451345        send a list of data to plot 
    13461346        """ 
     1347        total_plot_list = [] 
    13471348        data_list, _ = self._data_manager.get_by_id(data_id) 
    13481349        _, temp_list_theory = self._data_manager.get_by_id(theory_id) 
     1350        total_plot_list = data_list.values() 
    13491351        for item in temp_list_theory.values(): 
    13501352            theory_data, theory_state = item 
    1351             data_list.values().append(theory_data) 
     1353            total_plot_list.append(theory_data) 
    13521354        GROUP_ID = wx.NewId() 
    1353         for new_plot in data_list: 
     1355        for new_plot in total_plot_list: 
    13541356            if append: 
    13551357                if self.panel_on_focus is None: 
     
    13741376                                                  title=title)) 
    13751377             
    1376    
    1377                  
    13781378    def remove_data(self, data_id, theory_id=None): 
    13791379        """ 
  • guiframe/local_perspectives/plotting/Plotter1D.py

    rdf22224 rd7f727d  
    153153                #onRemove: graph is empty must be the panel must be destroyed 
    154154                self.parent.delete_panel(self.uid) 
    155         else: 
    156             msg = "Attempt to remove an unexisting plot with ID %s " % str(id) 
    157             raise ValueError, msg 
    158155         
    159156    def plot_data(self, data): 
Note: See TracChangeset for help on using the changeset viewer.