Changeset 2467 for trunk/GSASIIimage.py


Ignore:
Timestamp:
Sep 14, 2016 2:09:49 PM (5 years ago)
Author:
vondreele
Message:

modify 2D strain Dcalc to be dmin+(dmax-dmin)/4. per Yan Gao
begin plot of magnetic moments.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIimage.py

    r2425 r2467  
    10671067        else:
    10681068            ring['ImtaCalc'] = np.array([(V+1.)*ring['Dset'],azm])
    1069         ring['Dcalc'] = np.mean(ring['ImtaCalc'][0])
     1069        dmin = np.min(ring['ImtaCalc'][0])
     1070        dmax = np.max(ring['ImtaCalc'][0])
     1071        ring['Dcalc'] = dmin+(dmax-dmin)/4.
     1072#        ring['Dcalc'] = np.mean(ring['ImtaCalc'][0])
    10701073
    10711074def calcFij(omg,phi,azm,th):
    1072     '''Does something...
    1073 
    1074     Uses parameters as defined by Bob He & Kingsley Smith, Adv. in X-Ray Anal. 41, 501 (1997)
     1075    '''    Uses parameters as defined by Bob He & Kingsley Smith, Adv. in X-Ray Anal. 41, 501 (1997)
    10751076
    10761077    :param omg: his omega = sample omega rotation; 0 when incident beam || sample surface,
Note: See TracChangeset for help on using the changeset viewer.