Changeset 8d78399 in sasview for sansview/perspectives/fitting


Ignore:
Timestamp:
Sep 17, 2009 6:41:16 PM (15 years ago)
Author:
Mathieu Doucet <doucetm@…>
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:
09fe12d
Parents:
2051cbe
Message:

sansview: minor cosmetics

Location:
sansview/perspectives/fitting
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sansview/perspectives/fitting/gui_thread.py

    rbfe4644 r8d78399  
    7878            # Thread was interrupted, just proceed and re-raise. 
    7979            # Real code should not print, but this is an example... 
    80             raise KeyboardInterrupt 
     80            raise 
    8181       
    8282         
     
    148148            # Thread was interrupted, just proceed and re-raise. 
    149149            # Real code should not print, but this is an example... 
    150             raise KeyboardInterrupt 
     150            raise  
    151151        
  • sansview/perspectives/fitting/models.py

    rbfe4644 r8d78399  
    1111import os,sys,math 
    1212import os.path 
    13 from sans.models.pluginmodel import Model1DPlugin 
     13 
    1414(ModelEvent, EVT_MODEL) = wx.lib.newevent.NewEvent() 
    1515from sans.guicomm.events import StatusEvent   
     
    3838        @param model: class model to add into the plugin list 
    3939        @param name:name of the module plugin 
    40         @return model: model if valid model or nothing if not valid 
     40        @return model: model if valid model or None if not valid 
    4141    """ 
    4242    #Check is the plugin is of type Model1DPlugin 
     
    4444        msg= "Plugin %s must be of type Model1DPlugin \n"%str(name) 
    4545        log(msg) 
    46         return  
     46        return None 
    4747    if model.__name__!="Model": 
    4848        msg= "Plugin %s class name must be Model \n"%str(name) 
    4949        log(msg) 
    50         return  
     50        return None 
    5151    try: 
    5252        new_instance= model() 
     
    5555                                    str(sys.exc_type),sys.exc_value) 
    5656        log(msg) 
    57         return 
     57        return None 
    5858    
    5959    new_instance= model()  
     
    6565                                    str(sys.exc_type),sys.exc_value) 
    6666           log(msg) 
    67            return 
     67           return None 
    6868    else: 
    6969       msg="Plugin  %s needs a method called function \n"%str(name) 
    7070       log(msg) 
    71        return  
     71       return None 
    7272    return model 
    7373   
     
    9292                        try: 
    9393                            if _check_plugin(module.Model, name)!=None: 
    94                             #plugins.append(module.Model) 
    9594                                plugins.append(module.Model) 
    9695                        except: 
Note: See TracChangeset for help on using the changeset viewer.