Ignore:
Timestamp:
May 29, 2012 5:03:27 PM (13 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:
8182fbb
Parents:
a1fa589
Message:

reducing pylint warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fittingview/src/sans/perspectives/fitting/pagestate.py

    r724897ad r38226d26  
    696696        # For self.values ={ disp_param_name: [vals,...],...} 
    697697        # and for self.weights ={ disp_param_name: [weights,...],...} 
     698        list = {} 
    698699        for item in list_of_model_attributes: 
    699700            element = newdoc.createElement(item[0]) 
     
    856857                            # Try to recover disp_model object from strings 
    857858                            com = "from sans.models.dispersion_models " 
    858                             com += "import %s as disp" 
     859                            com += "import %s as disp /ndisp_model = disp()" 
    859860                            com_name = disp_name.split(".")[3] 
    860861                            exec com % com_name 
    861                             disp_model = disp() 
    862862                            exec "self.%s['%s'] = com_name" % (item[1], name) 
    863863                        except: 
     
    10091009            root_node = doc.createElement(item[0]) 
    10101010            new_node.appendChild(root_node) 
    1011              
     1011            temp_list = None 
    10121012            exec "temp_list = datainfo.%s" % item[1] 
    10131013 
Note: See TracChangeset for help on using the changeset viewer.