Changeset c155a16 in sasview for src/sas/sasgui/perspectives/pr
- Timestamp:
- Apr 4, 2017 10:06:27 AM (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/perspectives/pr
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sasgui/perspectives/pr/explore_dialog.py
rd85c194 rc155a16 22 22 import logging 23 23 import sys 24 25 logger = logging.getLogger() 24 26 25 27 # Avoid Matplotlib complaining about the lack of legend on the plot … … 284 286 msg += "a change in the " % str(output_type) 285 287 msg += "ExploreDialog code." 286 logg ing.error(msg)288 logger.error(msg) 287 289 288 290 def __do_layout(self): … … 418 420 msg = "ExploreDialog: inversion failed " 419 421 msg += "for D_max=%s\n%s" % (str(d), sys.exc_value) 420 logg ing.error(msg)422 logger.error(msg) 421 423 422 424 self.results = results -
src/sas/sasgui/perspectives/pr/inversion_panel.py
r18b7ecb9 rc155a16 17 17 from pr_widgets import OutputTextCtrl 18 18 from sas.sasgui.guiframe.documentation_window import DocumentationWindow 19 20 logger = logging.getLogger() 19 21 20 22 if sys.platform.count("win32") > 0: … … 710 712 self.alpha_ctl.SetValue(alpha) 711 713 except ValueError: 712 logg ing.error("InversionControl._on_accept_alpha got a value that was not a number: %s" % alpha )714 logger.error("InversionControl._on_accept_alpha got a value that was not a number: %s" % alpha ) 713 715 except: 714 716 # No estimate or bad estimate, either do nothing 715 logg ing.error("InversionControl._on_accept_alpha: %s" % sys.exc_value)717 logger.error("InversionControl._on_accept_alpha: %s" % sys.exc_value) 716 718 717 719 def _on_accept_nterms(self, evt): … … 726 728 self.nfunc_ctl.SetValue(nterms) 727 729 except ValueError: 728 logg ing.error("InversionControl._on_accept_nterms got a value that was not a number: %s" % nterms )730 logger.error("InversionControl._on_accept_nterms got a value that was not a number: %s" % nterms ) 729 731 except: 730 732 # No estimate or bad estimate, either do nothing 731 logg ing.error("InversionControl._on_accept_nterms: %s" % sys.exc_value)733 logger.error("InversionControl._on_accept_nterms: %s" % sys.exc_value) 732 734 733 735 def clear_panel(self): … … 947 949 except: 948 950 msg = "InversionControl._change_file: %s" % sys.exc_value 949 logg ing.error(msg)951 logger.error(msg) 950 952 951 953 def on_help(self, event): -
src/sas/sasgui/perspectives/pr/inversion_state.py
rd85c194 rc155a16 22 22 from sas.sascalc.dataloader.readers.cansas_reader import get_content 23 23 24 logger = logging.getLogger() 25 24 26 PRNODE_NAME = 'pr_inversion' 25 27 CANSAS_NS = "cansas1d/1.0" … … 250 252 msg = "InversionState.fromXML: Could not read " 251 253 msg += "timestamp\n %s" % sys.exc_value 252 logg ing.error(msg)254 logger.error(msg) 253 255 254 256 # Parse inversion inputs … … 306 308 err_msg += "%d %d" % (len(self.coefficients), 307 309 self.nfunc) 308 logg ing.error(err_msg)310 logger.error(err_msg) 309 311 self.coefficients = None 310 312 … … 343 345 err_msg += " covariance matrix: " 344 346 err_msg += "%d %d" % (len(self.covariance), self.nfunc) 345 logg ing.error(err_msg)347 logger.error(err_msg) 346 348 self.covariance = None 347 349 … … 430 432 msg = "XML document does not contain P(r) " 431 433 msg += "information.\n %s" % sys.exc_value 432 logg ing.info(msg)434 logger.info(msg) 433 435 434 436 return state -
src/sas/sasgui/perspectives/pr/pr.py
ra69a967 rc155a16 34 34 from pr_widgets import load_error 35 35 from sas.sasgui.guiframe.plugin_base import PluginBase 36 37 logger = logging.getLogger() 36 38 37 39 … … 113 115 114 116 # Log startup 115 logg ing.info("Pr(r) plug-in started")117 logger.info("Pr(r) plug-in started") 116 118 117 119 def delete_data(self, data_id): … … 181 183 self.control_panel.set_state(state) 182 184 except: 183 logg ing.error("prview.set_state: %s" % sys.exc_value)185 logger.error("prview.set_state: %s" % sys.exc_value) 184 186 185 187 … … 508 510 data_err = numpy.append(data_err, err) 509 511 except: 510 logg ing.error(sys.exc_value)512 logger.error(sys.exc_value) 511 513 512 514 if not scale == None: … … 559 561 data_err = numpy.append(data_err, err) 560 562 except: 561 logg ing.error(sys.exc_value)563 logger.error(sys.exc_value) 562 564 elif line.find("The 6 columns") >= 0: 563 565 data_started = True … … 1201 1203 dataset = panel.plots[panel.graph.selected_plottable].name 1202 1204 else: 1203 logg ing.info("Prview Error: No data is available")1205 logger.info("Prview Error: No data is available") 1204 1206 return 1205 1207 … … 1211 1213 except: 1212 1214 self.control_panel.alpha = self.alpha 1213 logg ing.info("Prview :Alpha Not estimate yet")1215 logger.info("Prview :Alpha Not estimate yet") 1214 1216 try: 1215 1217 estimate = int(self.control_panel.nterms_estimate) … … 1217 1219 except: 1218 1220 self.control_panel.nfunc = self.nfunc 1219 logg ing.info("Prview : ntemrs Not estimate yet")1221 logger.info("Prview : ntemrs Not estimate yet") 1220 1222 1221 1223 self.current_plottable = panel.plots[panel.graph.selected_plottable]
Note: See TracChangeset
for help on using the changeset viewer.