Changeset 691


Ignore:
Timestamp:
Jul 19, 2012 12:36:51 PM (9 years ago)
Author:
vondreele
Message:

another wtFactor fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASII.py

    r689 r691  
    19831983        '''
    19841984        PWDRdata = {}
    1985         PWDRdata.update(self.PatternTree.GetItemPyData(PWDRname)[0])            #wtFactor + ?
     1985        try:
     1986            PWDRdata.update(self.PatternTree.GetItemPyData(PWDRname)[0])            #wtFactor + ?
     1987        except ValueError:
     1988            PWDRdata['wtFactor'] = 1.0
    19861989        PWDRdata['Data'] = self.PatternTree.GetItemPyData(PWDRname)[1]          #powder data arrays
    19871990        PWDRdata['Limits'] = self.PatternTree.GetItemPyData(G2gd.GetPatternTreeItemId(self,PWDRname,'Limits'))
     
    20012004        '''
    20022005        HKLFdata = {}
    2003         HKLFdata.update(self.PatternTree.GetItemPyData(HKLFname)[0])            #wtFactor + ?
     2006        try:
     2007            HKLFdata.update(self.PatternTree.GetItemPyData(HKLFname)[0])            #wtFactor + ?
     2008        except ValueError:
     2009            HKLFdata['wtFactor'] = 1.0
    20042010        HKLFdata['Data'] = self.PatternTree.GetItemPyData(HKLFname)[1]
    20052011        HKLFdata['Instrument Parameters'] = self.PatternTree.GetItemPyData(G2gd.GetPatternTreeItemId(self,HKLFname,'Instrument Parameters'))
Note: See TracChangeset for help on using the changeset viewer.