Changeset 4e9583c in sasview for guiframe/data_manager.py
- Timestamp:
- Jul 22, 2010 12:24:33 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:
- cb463b4
- Parents:
- f5038c06
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
guiframe/data_manager.py
r3c44c66 r4e9583c 42 42 self.parent = parent 43 43 44 def get_data(self, data_list={}): 45 """ 46 return 47 """ 48 if not data_list: 49 return self.available_data.values() 50 for data, path in data_list: 51 if data.name not in self.available_data.keys(): 52 self.available_data[data.name] = (data, path) 53 return self.available_data.values() 54 44 55 def on_get_data(self, data_list, plot=False): 45 56 """ … … 53 64 for data, path in data_list: 54 65 if data.name not in self.available_data.keys(): 55 self.available_data[data.name] = data, path66 self.available_data[data.name] = (data, path) 56 67 if plot: 57 self.data_to_plot[data.name] = data, path68 self.data_to_plot[data.name] = (data, path) 58 69 59 70 return self.get_sorted_list()
Note: See TracChangeset
for help on using the changeset viewer.