Changeset 4752c31 in sasview for calculatorview/src


Ignore:
Timestamp:
Jun 4, 2012 5:34:07 PM (12 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:
3f68e93
Parents:
da7cacb
Message:

fixing pylint warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • calculatorview/src/sans/perspectives/calculator/sld_panel.py

    r7d45a56 r4752c31  
    6060        self.compound_ctl = None 
    6161        self.density_ctl = None 
     62        self.compound = "" 
     63        self.density = "" 
    6264        self.wavelength_ctl = None 
    6365        self.neutron_sld_real_ctl = None 
     
    305307        energy = xray_energy(element.K_alpha) 
    306308         
    307         self.sld_formula = formula(str(user_formula), density=self.density) 
     309        self.sld_formula = formula(str(self.compound), density=self.density) 
    308310        atom = self.sld_formula.atoms 
    309311        return xray_sld_from_atoms(atom, density=self.density, energy= energy) 
     
    320322     
    321323        self.wavelength = self.wavelength_ctl.GetValue() 
    322         if self.wavelength.lstrip().rstrip() == "": 
     324        if str(self.wavelength).lstrip().rstrip() == "": 
    323325            self.wavelength = WAVELENGTH 
    324326            self.wavelength_ctl.SetValue(str(WAVELENGTH)) 
Note: See TracChangeset for help on using the changeset viewer.