Changeset f0bb711 in sasview for src/sas/qtgui/Utilities/GuiUtils.py


Ignore:
Timestamp:
Oct 19, 2017 8:25:24 AM (7 years ago)
Author:
celinedurniak <celine.durniak@…>
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:
0c468bf
Parents:
d5c5d3d
Message:

Implemented comments from review for Data Operation Panel (ESS-GUI-SasView?-245)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/Utilities/GuiUtils.py

    rd5c5d3d rf0bb711  
    144144    # custom open_path 
    145145    open_folder = custom_config.DEFAULT_OPEN_FOLDER 
    146     if open_folder != None and os.path.isdir(open_folder): 
     146    if open_folder is not None and os.path.isdir(open_folder): 
    147147        DEFAULT_OPEN_FOLDER = os.path.abspath(open_folder) 
    148148    else: 
     
    231231 
    232232    # Send data to Data Operation Utility panel 
    233     sendDataToPanel = QtCore.pyqtSignal(dict) 
     233    sendDataToPanelSignal = QtCore.pyqtSignal(dict) 
    234234 
    235235    # Send result of Data Operation Utility panel to Data Explorer 
     
    528528                has_errors = False 
    529529        if has_errors: 
    530             if data.dx != None and data.dx != []: 
     530            if data.dx is not None and data.dx != []: 
    531531                out.write("<X>   <Y>   <dY>   <dX>\n") 
    532532            else: 
     
    537537        for i in range(len(data.x)): 
    538538            if has_errors: 
    539                 if data.dx != None and data.dx != []: 
     539                if data.dx is not None and data.dx != []: 
    540540                    if  data.dx[i] != None: 
    541541                        out.write("%g  %g  %g  %g\n" % (data.x[i], 
Note: See TracChangeset for help on using the changeset viewer.