Ignore:
Timestamp:
Apr 2, 2014 5:25:09 AM (11 years ago)
Author:
Tobias Richter <tobias.richter@…>
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:
6771d94
Parents:
8817d07
Message:

refs #57 Clean up warnings in Python code

File:
1 edited

Legend:

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

    r44f7c1b reddb6ec  
    1717import logging 
    1818import numpy 
     19import string 
    1920 
    2021import xml.dom.minidom 
    21 from xml.dom.minidom import parse 
    2222from lxml import etree 
    2323 
     
    193193        ##page name 
    194194        self.page_name = "" 
    195         # Contains link between  model ,all its parameters, and panel organization 
     195        # Contains link between model, all its parameters, and panel organization 
    196196        self.parameters = [] 
    197197        # String parameter list that can not be fitted 
     
    205205        ## orientation parameters 
    206206        self.orientation_params = [] 
    207         ## orientation parmaters for gaussian dispersity 
     207        ## orientation parameters for gaussian dispersity 
    208208        self.orientation_params_disp = [] 
    209209        ## smearer info 
     
    216216        self.dxl = None 
    217217        self.dxw = None 
    218         #list of dispersion paramaters 
     218        #list of dispersion parameters 
    219219        self.disp_list = [] 
    220220        if self.model is not None: 
     
    600600        : param figs: list of pylab figures [list] 
    601601        """ 
    602         from report_dialog import ReportDialog 
     602        from sans.perspectives.fitting.report_dialog import ReportDialog 
    603603        # get the strings for report 
    604604        html_str, text_str, title = self.set_report_string() 
     
    630630        dialog.ShowModal() 
    631631         
    632     def _toXML_helper(self, list, element, newdoc): 
     632    def _toXML_helper(self, thelist, element, newdoc): 
    633633        """ 
    634634        Helper method to create xml file for saving state 
    635635        """ 
    636         for item in list: 
     636        for item in thelist: 
    637637            sub_element = newdoc.createElement('parameter') 
    638638            sub_element.setAttribute('name', str(item[1])) 
Note: See TracChangeset for help on using the changeset viewer.