Changes in src/sas/sasgui/perspectives/fitting/pagestate.py [463e7ffc:27109e5] in sasview
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sasgui/perspectives/fitting/pagestate.py
r463e7ffc r27109e5 33 33 from sas.sascalc.dataloader.data_info import Data2D, Collimation, Detector 34 34 from sas.sascalc.dataloader.data_info import Process, Aperture 35 36 logger = logging.getLogger(__name__)37 35 38 36 # Information to read/write state as xml … … 397 395 msg = "Save state does not have enough information to load" 398 396 msg += " the all of the data." 399 logg er.warning(msg=msg)397 logging.warning(msg=msg) 400 398 else: 401 399 self.formfactorcombobox = FIRST_FORM[self.categorycombobox] … … 622 620 except Exception: 623 621 msg = "Report string expected 'name: value' but got %r" % line 624 logg er.error(msg)622 logging.error(msg) 625 623 if name.count("State created"): 626 624 repo_time = "" + value … … 664 662 except Exception: 665 663 msg = "While parsing 'data: ...'\n" 666 logg er.error(msg + traceback.format_exc())664 logging.error(msg + traceback.format_exc()) 667 665 if name == "model name ": 668 666 try: … … 680 678 except Exception: 681 679 msg = "While parsing 'Plotting Range: ...'\n" 682 logg er.error(msg + traceback.format_exc())680 logging.error(msg + traceback.format_exc()) 683 681 paramval = "" 684 682 for lines in param_string.split(":"): … … 1039 1037 msg = "PageState.fromXML: Could not" 1040 1038 msg += " read timestamp\n %s" % sys.exc_value 1041 logg er.error(msg)1039 logging.error(msg) 1042 1040 1043 1041 if entry is not None: … … 1079 1077 except Exception: 1080 1078 base = "unable to load distribution %r for %s" 1081 logg er.error(base % (value, parameter))1079 logging.error(base % (value, parameter)) 1082 1080 continue 1083 1081 _disp_obj_dict = getattr(self, varname) … … 1101 1099 msg = ("Error reading %r from %s %s\n" 1102 1100 % (line, tagname, name)) 1103 logg er.error(msg + traceback.format_exc())1101 logging.error(msg + traceback.format_exc()) 1104 1102 dic[name] = numpy.array(value_list) 1105 1103 setattr(self, varname, dic) … … 1209 1207 1210 1208 except: 1211 logg er.info("XML document does not contain fitting information.\n"1209 logging.info("XML document does not contain fitting information.\n" 1212 1210 + traceback.format_exc()) 1213 1211
Note: See TracChangeset
for help on using the changeset viewer.