Ignore:
Timestamp:
Nov 15, 2017 4:33:09 AM (6 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/calculator/slit_length_calculator_panel.py

    • Property mode changed from 100644 to 100755
    r7432acb rfa81e94  
    1717from sas.sasgui.guiframe.events import StatusEvent 
    1818from sas.sascalc.calculator.slit_length_calculator import SlitlengthCalculator 
    19 from calculator_widgets import OutputTextCtrl 
    20 from calculator_widgets import InterActiveOutputTextCtrl 
     19from .calculator_widgets import OutputTextCtrl 
     20from .calculator_widgets import InterActiveOutputTextCtrl 
    2121from sas.sasgui.perspectives.calculator import calculator_widgets as widget 
    2222from sas.sasgui.guiframe.documentation_window import DocumentationWindow 
     
    210210        try: 
    211211            #Load data 
    212             from load_thread import DataReader 
     212            from .load_thread import DataReader 
    213213            ## If a thread is already started, stop it 
    214214            if self.reader is not None and self.reader.isrunning(): 
     
    226226            if self.parent.parent is None: 
    227227                return 
    228             msg = "Slit Length Calculator: %s" % (sys.exc_value) 
     228            msg = "Slit Length Calculator: %s" % (sys.exc_info()[1]) 
    229229            wx.PostEvent(self.parent.parent, 
    230230                          StatusEvent(status=msg, type='stop')) 
     
    262262            if x == [] or  x is None or y == [] or y is None: 
    263263                msg = "The current data is empty please check x and y" 
    264                 raise ValueError, msg 
     264                raise ValueError(msg) 
    265265            slit_length_calculator = SlitlengthCalculator() 
    266266            slit_length_calculator.set_data(x=x, y=y) 
     
    269269            if self.parent.parent is None: 
    270270                return 
    271             msg = "Slit Size Calculator: %s" % (sys.exc_value) 
     271            msg = "Slit Size Calculator: %s" % (sys.exc_info()[1]) 
    272272            wx.PostEvent(self.parent.parent, 
    273273                          StatusEvent(status=msg, type='stop')) 
Note: See TracChangeset for help on using the changeset viewer.