Changeset 0261bc1 in sasview for src/sas/qtgui/MainWindow


Ignore:
Timestamp:
Nov 20, 2017 5:55:30 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:
f1ec901
Parents:
6a3e1fe
Message:

Added unit tests for recent functionality

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/MainWindow/DataManager.py

    rb3e8629 r0261bc1  
    126126        rename data 
    127127        """ 
    128         ## name of the data allow to differentiate data when plotted 
    129         name = GuiUtils.parseName(name=name, expression="_") 
     128        # name of the data allow to differentiate data when plotted 
     129        try: 
     130            name = GuiUtils.parseName(name=name, expression="_") 
     131        except TypeError: 
     132            # bad name sent to rename 
     133            return None 
    130134 
    131135        max_char = name.find("[") 
Note: See TracChangeset for help on using the changeset viewer.