Changeset 4556 for trunk/GSASIIphsGUI.py


Ignore:
Timestamp:
Aug 31, 2020 9:10:01 AM (14 months ago)
Author:
vondreele
Message:

Change color of As from "blue" to "orange".
Implement a sampling fraction for the Compare operation for atom polyhedra to octahedra/tetrahedra - part of RMCProfile/fullrmc results analysis

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIphsGUI.py

    r4553 r4556  
    16721672            del generalData['Flip']['Resolution']
    16731673        if 'Compare' not in generalData:
    1674             generalData['Compare'] = {'Oatoms':'','Tatoms':'','Tilts':{'Otilts':[],'Ttilts':[]},
     1674            generalData['Compare'] = {'Oatoms':'','Tatoms':'',
     1675                    'Tilts':{'Otilts':[],'Ttilts':[]},
    16751676                'Bonds':{'Obonds':[],'Tbonds':[]},'Vects':{'Ovec':[],'Tvec':[]},
    1676                 'dVects':{'Ovec':[],'Tvec':[]}}
     1677                'dVects':{'Ovec':[],'Tvec':[]},'Sampling':1.0}
     1678        if 'Sampling' not in generalData['Compare']:
     1679            generalData['Compare']['Sampling'] = 1.0
    16771680               
    16781681# end of patches
     
    28512854            tatmsel.Bind(wx.EVT_COMBOBOX,OnTatmOsel)
    28522855            atmselSizer.Add(tatmsel,0,WACV)
     2856           
     2857            atmselSizer.Add(wx.StaticText(General,label=' Sampling fraction:: '),0,WACV)
     2858            atmselSizer.Add(G2G.ValidatedTxtCtrl(General,generalData['Compare'],'Sampling',nDig=(8,3),xmin=0.0,xmax=1.0,),0,WACV)
    28532859           
    28542860            try:
     
    30643070        for iatm,atom in enumerate(data['Atoms']):
    30653071            if atom[ct] == Oatoms:
     3072                if ran.random() > generalData['Compare']['Sampling']:
     3073                    iAtm += 1
     3074                    continue
    30663075                results = G2mth.FindAllNeighbors(data,atom[ct-1],atNames,Orig=iatm)[0]      #slow step
    30673076                if len(results) == 4:
Note: See TracChangeset for help on using the changeset viewer.