Changeset f5038c06 in sasview


Ignore:
Timestamp:
Jul 22, 2010 10:01:03 AM (14 years ago)
Author:
Gervaise Alina <gervyh@…>
Branches:
master, 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, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
4e9583c
Parents:
1a3a03b
Message:

reverse code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • prview/perspectives/pr/inversion_panel.py

    r3c44c66 rf5038c06  
    292292        return state 
    293293     
    294     def set_data(self, list=[], state=None): 
    295         """ 
    296         Receive  a list of data from gui_manager to compute pr 
    297         """ 
    298         if list==[]: 
    299             msg = "Please select data for Pr perspective.\n" 
    300             dial = wx.MessageDialog(None, msg, 'Error Loading File',  
    301                                     wx.OK | wx.ICON_EXCLAMATION) 
    302             dial.ShowModal()  
    303             return 
    304         elif len(list) == 1: 
    305             data, filepath = list[0] 
    306             if data.__class__.__name__ == "Data2D": 
    307                 msg = "Pr cannot be computed for Data2D.\n" 
    308                 msg += "Please load another file.\n" 
    309                 dial = wx.MessageDialog(None, msg, 'Error Loading File',  
    310                                         wx.OK | wx.ICON_EXCLAMATION) 
    311                 dial.ShowModal()  
    312             else: 
    313                  self._change_file(evt=None, filepath=filepath) 
    314         else: 
    315             msg = "Pr cannot be computed for more than one data.\n" 
    316             msg += "Please load only file.\n" 
    317             dial = wx.MessageDialog(None, msg, 'Error Loading File',  
    318                                     wx.OK | wx.ICON_EXCLAMATION) 
    319             dial.ShowModal()  
    320              
    321294    def set_state(self, state): 
    322295        """ 
Note: See TracChangeset for help on using the changeset viewer.