Changeset b63dc6e in sasview for guiframe


Ignore:
Timestamp:
Aug 11, 2010 10:50:58 PM (14 years ago)
Author:
Jae Cho <jhjcho@…>
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:
7a07864
Parents:
9b18735
Message:

minor fixes of state

Location:
guiframe
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • guiframe/data_loader.py

    r9b18735 rb63dc6e  
    172172        load_error(sys.exc_value) 
    173173        return 
    174      
     174    basename  = os.path.basename(path) 
    175175    # Notify user if the loader completed the load but no data came out 
    176176    if output == None: 
    177         basename  = os.path.basename(path) 
    178177        if  not basename.endswith('.svs'): 
    179178            load_error("The data file appears to be empty.") 
    180179        return 
    181180   
    182       
     181    root, extension = os.path.splitext(basename) 
     182    ext =  extension.lower() 
    183183    filename = os.path.basename(path) 
    184184    if not  output.__class__.__name__ == "list": 
     
    229229        # plot data 
    230230        wx.PostEvent(parent, NewPlotEvent(plot=new_plot, title=title)) 
    231         if format in SVS_FILE_EXT: 
     231        if ext in SVS_FILE_EXT: 
    232232            # set state and plot computation if exists 
    233233            wx.PostEvent(parent,InvStateUpdateEvent()) 
     
    299299                wx.PostEvent(parent, NewPlotEvent(plot=new_plot, title=str(title))) 
    300300                 
    301                 if format in SVS_FILE_EXT: 
     301                if ext in SVS_FILE_EXT: 
    302302                    # set state and plot computation if exists 
    303303                    wx.PostEvent(parent,InvStateUpdateEvent()) 
  • guiframe/gui_manager.py

    r9b18735 rb63dc6e  
    795795            fd.close() 
    796796        else: 
     797            print "Nothing to save..." 
    797798            raise RuntimeError, "%s is not a SansView (.svs) file..." % path 
    798799 
Note: See TracChangeset for help on using the changeset viewer.