Changeset 2a0d9ad in sasview for src/sas


Ignore:
Timestamp:
Apr 11, 2017 2:24:45 AM (7 years ago)
Author:
Adam Washington <adam.washington@…>
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.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
f1e409f
Parents:
8d891d1
Message:

Remove unnecessary parameter from _findModels

The _findModels function takes a parameter which is then immediately
overwritten. This removes the unnecessary variable which
unfortunately shadows the builtin dir function.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/sasgui/perspectives/fitting/models.py

    r8d891d1 r2a0d9ad  
    161161 
    162162 
    163 def _findModels(dir): 
     163def _findModels(): 
    164164    """ 
    165165    Find custom models 
     
    262262        temp = {} 
    263263        if self.is_changed(): 
    264             return  _findModels(dir) 
     264            return  _findModels() 
    265265        logger.info("plugin model : %s" % str(temp)) 
    266266        return temp 
     
    337337        """ 
    338338        self.plugins = [] 
    339         new_plugins = _findModels(dir) 
     339        new_plugins = _findModels() 
    340340        for name, plug in  new_plugins.iteritems(): 
    341341            for stored_name, stored_plug in self.stored_plugins.iteritems(): 
Note: See TracChangeset for help on using the changeset viewer.