Changeset c155a16 in sasview for src/sas/sasgui/guiframe/local_perspectives
- Timestamp:
- Apr 4, 2017 12:06:27 PM (8 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.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- 463e7ffc
- Parents:
- 6722fae
- Location:
- src/sas/sasgui/guiframe/local_perspectives
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sasgui/guiframe/local_perspectives/data_loader/data_loader.py
ra674d0b rc155a16 7 7 import wx 8 8 import logging 9 10 logger = logging.getLogger() 9 11 10 12 from sas.sascalc.dataloader.loader import Loader … … 160 162 message += "\tError: {0}\n".format(error_data) 161 163 else: 162 logg ing.error("Loader returned an invalid object:\n %s" % str(item))164 logger.error("Loader returned an invalid object:\n %s" % str(item)) 163 165 data_error = True 164 166 … … 182 184 log_msg += "Please try to open that file from \"open project\"" 183 185 log_msg += "or \"open analysis\" menu." 184 logg ing.info(log_msg)186 logger.info(log_msg) 185 187 file_errors[basename] = [log_msg] 186 188 continue … … 212 214 213 215 except: 214 logg ing.error(sys.exc_value)216 logger.error(sys.exc_value) 215 217 216 218 error_message = "The Data file you selected could not be loaded.\n" -
src/sas/sasgui/guiframe/local_perspectives/plotting/Plotter1D.py
r29e872e rc155a16 24 24 from appearanceDialog import appearanceDialog 25 25 from graphAppearance import graphAppearance 26 27 logger = logging.getLogger() 26 28 27 29 DEFAULT_QMAX = 0.05 … … 242 244 wx.PostEvent(self.parent, StatusEvent(status=position)) 243 245 except: 244 logg ing.error(sys.exc_value)246 logger.error(sys.exc_value) 245 247 if not event.leftdown: 246 248 # text event … … 255 257 self.canvas.draw() 256 258 except: 257 logg ing.error(sys.exc_value)259 logger.error(sys.exc_value) 258 260 event.Skip() 259 261 return … … 409 411 self.q_ctrl[vl_ind].SetValue(str(pos_x)) 410 412 except: 411 logg ing.error(sys.exc_value)413 logger.error(sys.exc_value) 412 414 413 415 def set_resizing(self, resizing=False): -
src/sas/sasgui/guiframe/local_perspectives/plotting/Plotter2D.py
rb2b36932 rc155a16 30 30 from graphAppearance import graphAppearance 31 31 (InternalEvent, EVT_INTERNAL) = wx.lib.newevent.NewEvent() 32 33 logger = logging.getLogger() 32 34 33 35 DEFAULT_QMAX = 0.05 … … 432 434 except: 433 435 msg = "Add Text: Error. Check your property values..." 434 logg ing.error(msg)436 logger.error(msg) 435 437 if self.parent != None: 436 438 wx.PostEvent(self.parent, StatusEvent(status=msg)) -
src/sas/sasgui/guiframe/local_perspectives/plotting/binder.py
rd85c194 rc155a16 4 4 import logging 5 5 import sys 6 7 logger = logging.getLogger() 6 8 7 9 class Selection(object): … … 70 72 canvas.mpl_disconnect(canvas.scroll_pick_id) 71 73 except: 72 logg ing.error(sys.exc_value)74 logger.error(sys.exc_value) 73 75 self.canvas = canvas 74 76 self.figure = figure
Note: See TracChangeset
for help on using the changeset viewer.