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/guiframe/data_processor.py

    ra1b8fee rfa81e94  
    909909                    msg = "Edit axis doesn't understand this selection.\n" 
    910910                    msg += "Please select only one column" 
    911                     raise ValueError, msg 
     911                    raise (ValueError, msg) 
    912912            for (_, cell_col) in grid.selected_cells: 
    913913                if cell_col != col: 
     
    915915                    msg += "this operation.\n" 
    916916                    msg += "Please select elements of the same col.\n" 
    917                     raise ValueError, msg 
     917                    raise (ValueError, msg) 
    918918 
    919919            # Finally check the highlighted cell if any cells missing 
     
    922922            msg = "No item selected.\n" 
    923923            msg += "Please select only one column or one cell" 
    924             raise ValueError, msg 
     924            raise (ValueError, msg) 
    925925        return grid.selected_cells 
    926926 
     
    13261326            if sentence.strip() == "": 
    13271327                msg = "Select column values for x axis" 
    1328                 raise ValueError, msg 
     1328                raise (ValueError, msg) 
    13291329        except: 
    13301330            msg = "X axis value error." 
     
    13451345            if sentence.strip() == "": 
    13461346                msg = "select value for y axis" 
    1347                 raise ValueError, msg 
     1347                raise (ValueError, msg) 
    13481348        except: 
    13491349            msg = "Y axis value error." 
     
    16311631 
    16321632        # We need to grab a WxMenu handle here, otherwise the next one to grab 
    1633         # the handle will be treated as the Edit Menu handle when checking in 
     1633        # the handle will be treated as the Edi)t Menu handle when checking in 
    16341634        # on_menu_open event handler and thus raise an exception when it hits an  
    16351635        # unitialized object.  Alternative is to comment out that whole section 
Note: See TracChangeset for help on using the changeset viewer.