Changeset 4752c31 in sasview for calculatorview
- Timestamp:
- Jun 4, 2012 3:34:07 PM (13 years ago)
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
calculatorview/src/sans/perspectives/calculator/sld_panel.py
r7d45a56 r4752c31 60 60 self.compound_ctl = None 61 61 self.density_ctl = None 62 self.compound = "" 63 self.density = "" 62 64 self.wavelength_ctl = None 63 65 self.neutron_sld_real_ctl = None … … 305 307 energy = xray_energy(element.K_alpha) 306 308 307 self.sld_formula = formula(str( user_formula), density=self.density)309 self.sld_formula = formula(str(self.compound), density=self.density) 308 310 atom = self.sld_formula.atoms 309 311 return xray_sld_from_atoms(atom, density=self.density, energy= energy) … … 320 322 321 323 self.wavelength = self.wavelength_ctl.GetValue() 322 if s elf.wavelength.lstrip().rstrip() == "":324 if str(self.wavelength).lstrip().rstrip() == "": 323 325 self.wavelength = WAVELENGTH 324 326 self.wavelength_ctl.SetValue(str(WAVELENGTH))
Note: See TracChangeset
for help on using the changeset viewer.