Changeset e75b5fa in sasview for guiframe/local_perspectives/data_loader
- Timestamp:
- Feb 23, 2011 2:36:11 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:
- 2ac5f09
- Parents:
- fdb5c19
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
guiframe/local_perspectives/data_loader/data_loader.py
r0348245 re75b5fa 57 57 Load data 58 58 """ 59 path = None 59 60 if self._default_save_location == None: 60 61 self._default_save_location = os.getcwd() … … 72 73 if len(file_list) >= 0 and not(file_list[0]is None): 73 74 self._default_save_location = os.path.dirname(file_list[0]) 75 path = self._default_save_location 74 76 dlg.Destroy() 75 77 76 if not file_list or file_list[0] is None:78 if path is None or not file_list or file_list[0] is None: 77 79 return 78 80 self.get_data(file_list) 79 self.parent.show_data_panel(event=None)81 80 82 81 83 def can_load_data(self): … … 90 92 Load entire folder 91 93 """ 94 path = None 92 95 if self._default_save_location == None: 93 96 self._default_save_location = os.getcwd() … … 105 108 file_list = self.get_file_path(path) 106 109 self.get_data(file_list) 107 self.parent.show_data_panel(event=None) 108 109 110 110 111 def load_error(self, error=None): 111 112 """
Note: See TracChangeset
for help on using the changeset viewer.