Changeset 1778 for trunk/GSASIIIO.py


Ignore:
Timestamp:
Apr 6, 2015 1:33:00 PM (7 years ago)
Author:
vondreele
Message:

allow Refine texture menu item to appear; use DestroyChildren? to clear the Texture tab before filling
fix azimuth calculations after image integration
put Azimuth in Sample parms.
add 3 prints to debug option in G2mapvars
add Omega, Chi, Phi & Azimuth to sequential results table if they vary

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIIO.py

    r1770 r1778  
    10411041    else:
    10421042        for i,azm in enumerate(azms[:-1]):
    1043             Azms.append(G2img.meanAzm(azm,azms[i+1]))
     1043            if azm > 360. and azms[i+1] > 360.:
     1044                Azms.append(G2img.meanAzm(azm%360.,azms[i+1]%360.))
     1045            else:   
     1046                Azms.append(G2img.meanAzm(azm,azms[i+1]))
    10441047    for i,azm in enumerate(azms[:-1]):
    10451048        Aname = name+" Azm= %.2f"%(Azms[i])
     
    10581061        Sample['Chi'] = data['GonioAngles'][1]
    10591062        Sample['Phi'] = data['GonioAngles'][2]
     1063        Sample['Azimuth'] = Azms[i]     #put here too
    10601064        if 'PWDR' in Aname:
    10611065            parms = ['PXC',data['wavelength'],0.0,0.99,1.0,-0.10,0.4,0.30,1.0,0.0001,Azms[i]]    #set polarization for synchrotron radiation!
Note: See TracChangeset for help on using the changeset viewer.