Changeset 4888
- Timestamp:
- Apr 22, 2021 3:21:03 PM (2 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIdataGUI.py
r4875 r4888 78 78 import GSASIIrestrGUI as G2restG 79 79 import GSASIIobj as G2obj 80 #import GSASIIexprGUI as G2exG81 80 import GSASIIlog as log 82 81 import GSASIIctrlGUI as G2G -
trunk/exports/G2export_CIF.py
r4886 r4888 56 56 import GSASIImath as G2mth 57 57 import GSASIIspc as G2spc 58 import GSASIIlattice as G2lat 58 59 import GSASIIstrMain as G2stMn 59 60 import GSASIIstrIO as G2strIO … … 105 106 General = phasedict['General'] 106 107 cx,ct,cs,cia = General['AtomPtrs'] 108 GS = G2lat.cell2GS(General['Cell'][1:7]) 109 Amat = G2lat.cell2AB(General['Cell'][1:7])[0] 107 110 Atoms = phasedict['Atoms'] 108 111 cfrac = cx+3 … … 152 155 adp = 'Uani ' 153 156 naniso += 1 154 # compute Uequiv crudely 155 # correct: Defined as "1/3 trace of diagonalized U matrix". 156 # SEE cell2GS & Uij2Ueqv to GSASIIlattice. Former is needed to make the GS matrix used by the latter. 157 t = 0.0 157 t = G2lat.Uij2Ueqv(at[cia+2:cia+8],GS,Amat)[0] 158 158 for j in (2,3,4): 159 159 var = pfx+varnames[cia+j]+":"+str(i) 160 t += parmDict.get(var,at[cia+j])161 160 for j in (cx,cx+1,cx+2,cx+3,cia,cia+1): 162 161 if j in (cx,cx+1,cx+2): … … 165 164 else: 166 165 dig = 10 167 sigdig = -0.00 9166 sigdig = -0.0009 168 167 if j == cia: 169 168 s += adp … … 174 173 dvar = var 175 174 if j == cia+1 and adp == 'Uani ': 176 val = t/3.177 175 sig = sigdig 176 val = t 178 177 else: 179 178 #print var,(var in parmDict),(var in sigDict) … … 623 622 for h in phasedict['Histograms']: 624 623 if not phasedict['Histograms'][h]['Use']: continue 624 if 'Flack' in phasedict['Histograms'][h].keys(): #single crystal data 625 return False 625 626 T = self.Histograms[h]['Sample Parameters']['Temperature'] 626 627 if np.any(abs(np.array(phasedict['Histograms'][h]['HStrain'][0])) > 1e-8): … … 653 654 for h in phasedict['Histograms']: 654 655 if not phasedict['Histograms'][h]['Use']: continue 656 if 'Flack' in phasedict['Histograms'][h].keys(): #single crystal data 657 return (300,None) 655 658 T = self.Histograms[h]['Sample Parameters']['Temperature'] 656 659 if np.any(abs(np.array(phasedict['Histograms'][h]['HStrain'][0])) > 1e-8):
Note: See TracChangeset
for help on using the changeset viewer.