Changeset df7046f in sasview for guiframe/local_perspectives/data_loader
- Timestamp:
- Jan 21, 2011 1:35:47 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:
- c26a64b
- Parents:
- cacbd7d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
guiframe/local_perspectives/data_loader/data_loader.py
rf444b20 rdf7046f 6 6 import sys 7 7 import wx 8 import logging 8 9 9 10 from DataLoader.loader import Loader … … 192 193 """ 193 194 message = "" 195 log_msg = '' 194 196 output = [] 195 197 error_message = "" … … 199 201 if flag: 200 202 if extension.lower() in EXTENSIONS: 201 error_message = "Cannot load: %s\n" % str(p_file) 202 error_message += "Try File -> open ...." 203 log_msg = "Data Loader cannot " 204 log_msg += "load: %s\n" % str(p_file) 205 log_msg += "Try File -> open ...." 206 logging.info(log_msg) 203 207 continue 204 208 else: 205 209 if extension.lower() not in EXTENSIONS: 206 error_message = "Cannot load: %s\n" % str(p_file) 207 error_message += "Try Data -> Load ...." 210 log_msg = "File Loader cannot" 211 log_msg += " load: %s\n" % str(p_file) 212 log_msg += "Try Data -> Load ...." 213 logging.info(log_msg) 208 214 continue 209 215 try: … … 223 229 self.load_update(output=output, message=error_message) 224 230 225 message = "Loading Complete!" 231 message = "Loading Complete! " 232 message += log_msg 226 233 self.load_complete(output=output, error_message=error_message, 227 234 message=message, path=path)
Note: See TracChangeset
for help on using the changeset viewer.