Changeset 7ad8faa in sasview for guiframe


Ignore:
Timestamp:
Apr 19, 2011 3:27: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:
7194f7b
Parents:
48665ed
Message:

fix loading issues with same id

Location:
guiframe
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • guiframe/data_manager.py

    rbffa3d0 r7ad8faa  
    4343        self.count = 0 
    4444        self.list_of_id = [] 
     45        self.time_stamp = time.time() 
    4546       
    4647    def __str__(self): 
     
    9192        new_plot.interactive = True 
    9293        ## when 2 data have the same id override the 1 st plotted 
    93         new_plot.id = time.time() 
     94        self.time_stamp += 1 
     95        new_plot.id = self.time_stamp 
    9496        ##group_id specify on which panel to plot this data 
    95         new_plot.group_id = time.time() 
     97        new_plot.group_id = self.time_stamp 
    9698        new_plot.is_data = True 
    9799        new_plot.path = path 
  • guiframe/gui_manager.py

    r48665ed r7ad8faa  
    2525        fObj, path, descr = imp.find_module('local_config', [path]) 
    2626        config = imp.load_module('local_config', fObj, path, descr)   
    27     else: 
    2827        # Try simply importing local_config 
    2928        import local_config as config 
Note: See TracChangeset for help on using the changeset viewer.