Changeset 248b918 in sasview
- Timestamp:
- May 13, 2011 2:35:14 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:
- f22e626
- Parents:
- b2448a5
- Location:
- guiframe
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
guiframe/data_manager.py
re5c7052 r248b918 96 96 ## when 2 data have the same id override the 1 st plotted 97 97 self.time_stamp += 1 98 new_plot.id = s elf.time_stamp98 new_plot.id = str(name) + str(self.time_stamp) 99 99 ##group_id specify on which panel to plot this data 100 new_plot.group_id = s elf.time_stamp100 new_plot.group_id = str(name) + str(self.time_stamp) 101 101 new_plot.is_data = True 102 102 new_plot.path = path … … 224 224 """ 225 225 """ 226 if data_id in self.stored_data.keys(): 227 data_state = self.stored_data[data_id] 228 if data_state.data.name in self.data_name_dict: 229 del self.data_name_dict[data_state.data.name] 230 del self.stored_data[data_id] 226 for d_id in data_id: 227 if d_id in self.stored_data.keys(): 228 data_state = self.stored_data[d_id] 229 if data_state.data.name in self.data_name_dict: 230 del self.data_name_dict[data_state.data.name] 231 del self.stored_data[d_id] 231 232 232 233 self.delete_theory(data_id, theory_id) -
guiframe/data_panel.py
r8cb8c89 r248b918 150 150 151 151 self.sizer2 = wx.BoxSizer(wx.VERTICAL) 152 self.sizer3 = wx.FlexGridSizer( 5, 2, 0, 0)152 self.sizer3 = wx.FlexGridSizer(6, 2, 0, 0) 153 153 self.sizer4 = wx.BoxSizer(wx.HORIZONTAL) 154 154 self.sizer5 = wx.BoxSizer(wx.VERTICAL) … … 226 226 self.enable_plot() 227 227 self.enable_import() 228 #self.enable_remove()228 self.enable_remove() 229 229 230 230 def layout_button(self): … … 237 237 self.bt_add.SetToolTipString("Load data files") 238 238 wx.EVT_BUTTON(self, self.bt_add.GetId(), self._load_data) 239 #self.bt_remove = wx.Button(self, wx.NewId(), "Remove Data",240 #size=(BUTTON_WIDTH, -1))241 #self.bt_remove.SetToolTipString("Remove data from the application")242 #wx.EVT_BUTTON(self, self.bt_remove.GetId(), self.on_remove)239 self.bt_remove = wx.Button(self, wx.NewId(), "Remove Data", 240 size=(BUTTON_WIDTH, -1)) 241 self.bt_remove.SetToolTipString("Remove data from the application") 242 wx.EVT_BUTTON(self, self.bt_remove.GetId(), self.on_remove) 243 243 self.bt_import = wx.Button(self, wx.NewId(), "Send To", 244 244 size=(BUTTON_WIDTH, -1)) … … 272 272 self.sizer3.AddMany([(self.bt_add), 273 273 ((10, 10)), 274 (self.bt_remove), 275 ((10, 10)), 274 276 (self.bt_import, 0, wx.EXPAND|wx.RIGHT, 5), 275 277 (self.perspective_cbox, wx.EXPAND), … … 283 285 self.sizer3.AddGrowableCol(1, 1) 284 286 285 #self.enable_remove()287 self.enable_remove() 286 288 self.enable_import() 287 289 self.enable_plot() … … 338 340 self.enable_plot() 339 341 self.enable_import() 340 #self.enable_remove()342 self.enable_remove() 341 343 event.Skip() 342 344 … … 412 414 process.__str__()) 413 415 self.append_theory(state_id, theory_list) 414 #self.enable_remove()416 self.enable_remove() 415 417 self.enable_import() 416 418 self.enable_plot() … … 429 431 self.enable_plot() 430 432 self.enable_import() 431 #self.enable_remove()433 self.enable_remove() 432 434 433 435 def append_theory(self, state_id, theory_list): … … 710 712 self.parent.remove_data(data_id=data_to_remove, 711 713 theory_id=theory_to_remove) 712 #self.enable_remove()714 self.enable_remove() 713 715 self.enable_freeze() 714 716 … … 718 720 """ 719 721 data_id, theory_id, state_id = self.set_data_helper() 720 self.parent.set_data(data_id)721 self.parent.set_data(data_id= state_id, theory_id=theory_id)722 temp = data_id + state_id 723 self.parent.set_data(data_id=temp, theory_id=theory_id) 722 724 723 725 def on_append_plot(self, event=None): -
guiframe/local_perspectives/plotting/Plotter1D.py
r450ae05 r248b918 173 173 if id in data_list.keys(): 174 174 data = data_list[id] 175 else:175 if id in theory_list.keys(): 176 176 data = theory_list[id] 177 177
Note: See TracChangeset
for help on using the changeset viewer.