Ignore:
Timestamp:
Nov 15, 2017 2:33:09 AM (6 years ago)
Author:
Piotr Rozyczko <rozyczko@…>
Branches:
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
Children:
d4881f6a
Parents:
7c487846
Message:

Initial commit of the P(r) inversion perspective.
Code merged from Jeff Krzywon's ESS_GUI_Pr branch.
Also, minor 2to3 mods to sascalc/sasgui to enble error free setup.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/sasgui/perspectives/calculator/sld_panel.py

    • Property mode changed from 100644 to 100755
    r2d220dd rfa81e94  
    366366        if len(myformula.atoms) != 1: 
    367367            return 
    368         element = myformula.atoms.keys()[0] 
     368        element = list(myformula.atoms.keys())[0] 
    369369        energy = xray_energy(element.K_alpha) 
    370370 
     
    450450        if len(element_formula.atoms) != 1: 
    451451            return 
    452         element = element_formula.atoms.keys()[0] 
     452        element = list(element_formula.atoms.keys())[0] 
    453453        energy = xray_energy(element.K_alpha) 
    454454        atom = molecule_formula.atoms 
     
    507507        except: 
    508508            if self.base is not None: 
    509                 msg = "SLD Calculator: %s" % (sys.exc_value) 
     509                msg = "SLD Calculator: %s" % (sys.exc_info()[1]) 
    510510                wx.PostEvent(self.base, StatusEvent(status=msg)) 
    511511        if event is not None: 
Note: See TracChangeset for help on using the changeset viewer.