Changeset 4cc25e9 in sasview
- Timestamp:
- Jul 12, 2012 2:35:06 PM (12 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:
- 699df7f
- Parents:
- d4d4c8a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansguiframe/src/sans/guiframe/data_panel.py
rd4d4c8a r4cc25e9 238 238 self.selection_cbox.SetValue('Select all Data') 239 239 wx.EVT_COMBOBOX(self.selection_cbox, -1, self._on_selection_type) 240 self.sizer5.AddMany([(select_txt, 0, wx.ALL, 5),240 self.sizer5.AddMany([(select_txt, 0, wx.ALL, 5), 241 241 (self.selection_cbox, 0, wx.ALL,5)]) 242 242 self.enable_selection() … … 559 559 id, data_class_name, _ = self.tree_ctrl.GetSelection().GetData() 560 560 data_list, _ = \ 561 561 self.parent.get_data_manager().get_by_id(id_list=[id]) 562 562 if not data_list: 563 563 is_data = False … … 677 677 self.tree_ctrl.DeleteChildren(d_p_c) 678 678 for process in process_list: 679 i_t_c= self.tree_ctrl.AppendItem(d_p_c,679 _ = self.tree_ctrl.AppendItem(d_p_c, 680 680 process.__str__()) 681 681 wx.CallAfter(self.append_theory, state_id, theory_list) … … 1326 1326 process1 = data1.process[len(data1.process)-1] 1327 1327 process1.data = "07/01/2010" 1328 theory = Data2D()1329 theory .id = 341330 theory .name = "theory1"1331 path = "path1"1328 theory1 = Data2D() 1329 theory1.id = 34 1330 theory1.name = "theory1" 1331 path1 = "path1" 1332 1332 state1 = State() 1333 data_list1['1'] = set_data_state(data1, path , theory, state1)1333 data_list1['1'] = set_data_state(data1, path1, theory1, state1) 1334 1334 #state 2 1335 1335 data1 = Data2D() 1336 1336 data1.name = "data2" 1337 1337 data1.id = 76 1338 theory = Data2D()1339 theory .id = 781340 theory .name = "CoreShell 07/24/25"1341 path = "path2"1338 theory1 = Data2D() 1339 theory1.id = 78 1340 theory1.name = "CoreShell 07/24/25" 1341 path1 = "path2" 1342 1342 #state3 1343 1343 state1 = State() 1344 data_list1['2'] = set_data_state(data1, path , theory, state1)1344 data_list1['2'] = set_data_state(data1, path1, theory1, state1) 1345 1345 data1 = Data1D() 1346 1346 data1.id = 3 1347 1347 data1.name = "data2" 1348 theory = Theory1D()1349 theory .name = "CoreShell"1350 theory .id = 41351 theory .append_empty_process()1352 process1 = theory .process[len(theory.process)-1]1348 theory1 = Theory1D() 1349 theory1.name = "CoreShell" 1350 theory1.id = 4 1351 theory1.append_empty_process() 1352 process1 = theory1.process[len(theory1.process)-1] 1353 1353 process1.description = "this is my description" 1354 path = "path3"1354 path1 = "path3" 1355 1355 data1.append_empty_process() 1356 1356 process1 = data1.process[len(data1.process)-1] 1357 1357 process1.data = "07/22/2010" 1358 data_list1['4'] = set_data_state(data1, path , theory, state1)1358 data_list1['4'] = set_data_state(data1, path1, theory1, state1) 1359 1359 #state 4 1360 1360 temp_data_list = {} 1361 1361 data1.name = "data5 erasing data2" 1362 temp_data_list['4'] = set_data_state(data1, path , theory, state1)1362 temp_data_list['4'] = set_data_state(data1, path1, theory1, state1) 1363 1363 #state 5 1364 1364 data1 = Data2D() … … 1368 1368 process1 = data1.process[len(data1.process)-1] 1369 1369 process1.data = "07/01/2010" 1370 theory = Theory1D()1371 theory .name = "Cylinder"1372 path = "path2"1370 theory1 = Theory1D() 1371 theory1.name = "Cylinder" 1372 path1 = "path2" 1373 1373 state1 = State() 1374 dstate1 = set_data_state(data1, path, theory, state1)1375 theory = Theory1D()1376 theory .id = 61377 theory .name = "CoreShell"1378 dstate1.set_theory(theory )1379 theory = Theory1D()1380 theory .id = 61381 theory .name = "CoreShell replacing coreshell in data3"1382 dstate1.set_theory(theory )1374 dstate1 = set_data_state(data1, path1, theory1, state1) 1375 theory1 = Theory1D() 1376 theory1.id = 6 1377 theory1.name = "CoreShell" 1378 dstate1.set_theory(theory1) 1379 theory1 = Theory1D() 1380 theory1.id = 6 1381 theory1.name = "CoreShell replacing coreshell in data3" 1382 dstate1.set_theory(theory1) 1383 1383 data_list1['3'] = dstate1 1384 1384 #state 6 1385 data_list1['6'] = set_data_state(None, path , theory, state1)1386 data_list1['6'] = set_data_state(theory=theory , state=None)1387 theory = Theory1D()1388 theory .id = 71389 data_list1['6'] = set_data_state(theory=theory , state=None)1390 data_list1['7'] = set_data_state(theory=theory , state=None)1385 data_list1['6'] = set_data_state(None, path1, theory1, state1) 1386 data_list1['6'] = set_data_state(theory=theory1, state=None) 1387 theory1 = Theory1D() 1388 theory1.id = 7 1389 data_list1['6'] = set_data_state(theory=theory1, state=None) 1390 data_list1['7'] = set_data_state(theory=theory1, state=None) 1391 1391 window = DataFrame(list=data_list1) 1392 1392 window.load_data_list(list=data_list1)
Note: See TracChangeset
for help on using the changeset viewer.