Changeset 5080cda in sasview
- Timestamp:
- Mar 17, 2011 4:50:37 PM (14 years ago)
- 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:
- 511c6810
- Parents:
- 02775ab8
- Location:
- guiframe
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
guiframe/data_manager.py
rd7f727d r5080cda 17 17 import logging 18 18 import os 19 import wx20 19 import copy 21 20 … … 25 24 from sans.guiframe.dataFitting import Data1D 26 25 from sans.guiframe.dataFitting import Data2D 27 26 import time 28 27 29 28 class DataManager(object): … … 42 41 self.message = "" 43 42 self.data_name_dict = {} 43 self.count = 0 44 self.list_of_id = [] 44 45 45 46 def __str__(self): … … 58 59 """ 59 60 60 if issubclass(Data Info.Data2D, data.__class__):61 if issubclass(Data2D, data.__class__): 61 62 new_plot = Data2D(image=None, err_image=None) 62 63 else: … … 90 91 new_plot.interactive = True 91 92 ## when 2 data have the same id override the 1 st plotted 92 new_plot.id = wx.NewId()93 new_plot.id = time.time() 93 94 ##group_id specify on which panel to plot this data 94 new_plot.group_id = wx.NewId()95 new_plot.group_id = time.time() 95 96 new_plot.is_data = True 96 97 new_plot.path = path … … 131 132 else: 132 133 data_state = DataState(data) 133 data_state.id = wx.NewId()134 data_state.id = time.time() 134 135 self.stored_data[id] = data_state 135 136 … … 199 200 theory_data, theory_state = theory_list[t_id] 200 201 new_theory = copy.deepcopy(theory_data) 201 new_theory.id = wx.NewId()202 new_theory.id = time.time() 202 203 new_theory.is_data = True 203 204 selected_theory[new_theory.id] = DataState(new_theory) -
guiframe/data_state.py
r552b3d5 r5080cda 46 46 _str += "Theory info: \n" 47 47 _str += str(theory_data) 48 #_str += "Theory info: \n" 49 #_str += str(theory_state) 48 50 49 return _str 51 50
Note: See TracChangeset
for help on using the changeset viewer.