Ignore:
Timestamp:
Nov 15, 2017 2:33:09 AM (7 years ago)
Author:
Piotr Rozyczko <rozyczko@…>
Branches:
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
Children:
d4881f6a
Parents:
7c487846
Message:

Initial commit of the P(r) inversion perspective.
Code merged from Jeff Krzywon's ESS_GUI_Pr branch.
Also, minor 2to3 mods to sascalc/sasgui to enble error free setup.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/sasgui/perspectives/pr/inversion_panel.py

    • Property mode changed from 100644 to 100755
    rcb62bd5 rfa81e94  
    1212from sas.sasgui.guiframe.events import StatusEvent 
    1313from sas.sasgui.guiframe.panel_base import PanelBase 
    14 from inversion_state import InversionState 
    15 from pr_widgets import PrTextCtrl 
    16 from pr_widgets import DataFileTextCtrl 
    17 from pr_widgets import OutputTextCtrl 
     14from .inversion_state import InversionState 
     15from .pr_widgets import PrTextCtrl 
     16from .pr_widgets import DataFileTextCtrl 
     17from .pr_widgets import OutputTextCtrl 
    1818from sas.sasgui.guiframe.documentation_window import DocumentationWindow 
    1919 
     
    754754        except: 
    755755            # No estimate or bad estimate, either do nothing 
    756             logger.error("InversionControl._on_accept_alpha: %s" % sys.exc_value) 
     756            logger.error("InversionControl._on_accept_alpha: %s" % sys.exc_info()[1]) 
    757757 
    758758    def _on_accept_nterms(self, evt): 
     
    770770        except: 
    771771            # No estimate or bad estimate, either do nothing 
    772             logger.error("InversionControl._on_accept_nterms: %s" % sys.exc_value) 
     772            logger.error("InversionControl._on_accept_nterms: %s" % sys.exc_info()[1]) 
    773773 
    774774    def clear_panel(self): 
     
    901901                message += "than the number of points" 
    902902                wx.PostEvent(self._manager.parent, StatusEvent(status=message)) 
    903                 raise ValueError, message 
     903                raise ValueError(message) 
    904904            self.nfunc_ctl.SetBackgroundColour(wx.WHITE) 
    905905            self.nfunc_ctl.Refresh() 
     
    957957        Invoke the d_max exploration dialog 
    958958        """ 
    959         from explore_dialog import ExploreDialog 
     959        from .explore_dialog import ExploreDialog 
    960960        if self._manager._last_pr is not None: 
    961961            pr = self._manager._create_plot_pr() 
     
    10091009                self._set_analysis(True) 
    10101010            except: 
    1011                 msg = "InversionControl._change_file: %s" % sys.exc_value 
     1011                msg = "InversionControl._change_file: %s" % sys.exc_info()[1] 
    10121012                logger.error(msg) 
    10131013 
Note: See TracChangeset for help on using the changeset viewer.