Changeset 142 for trunk/GSASII.py


Ignore:
Timestamp:
Aug 2, 2010 4:12:33 PM (12 years ago)
Author:
vondreel
Message:

major refactor of phase editing, EXP & PDB import
replace "general" list with dictionary,
make Uij obey site symmetry for user access

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASII.py

    r135 r142  
    810810        SGData = {'SpGrp':'P 1'}
    811811        self.PatternTree.SetItemPyData(sub, \
    812             {'General':[PhaseName,'nuclear',SGData,[False,10.,10.,10.,90.,90.,90,1000.],
    813             [False,1.0],[],{},[],[],[]],'Atoms':[]})
     812            {'General':{'Name':'phase name','Type':'nuclear','SGData':SGData,'Cell':[False,10.,10.,10.,90.,90.,90,1000.],
     813            'Scale':[False,1.0],'Pawley dmin':0.25},'Atoms':[]})
     814
    814815       
    815816    def OnDeletePhase(self,event):
     
    10071008                dlg.Destroy()
    10081009            if Phase:
    1009                 PhaseName = Phase['General'][0]
     1010                PhaseName = Phase['General']['Name']
    10101011                if not G2gd.GetPatternTreeItemId(self,self.root,'Phases'):
    10111012                    sub = self.PatternTree.AppendItem(parent=self.root,text='Phases')
     
    10281029                dlg.Destroy()
    10291030            if Phase:
    1030                 PhaseName = Phase['General'][0]
     1031                PhaseName = Phase['General']['Name']
    10311032                if not G2gd.GetPatternTreeItemId(self,self.root,'Phases'):
    10321033                    sub = self.PatternTree.AppendItem(parent=self.root,text='Phases')
Note: See TracChangeset for help on using the changeset viewer.