Changeset 2468 for trunk/GSASIIimage.py


Ignore:
Timestamp:
Sep 15, 2016 2:03:04 PM (5 years ago)
Author:
vondreele
Message:

add dzero calc from compression 2D images
plot magnetic structures; rework a number of draw atom routines to accomodate magnetic structures
fix EXP phase importer for nonmagnetic atoms in magnetic structure

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIimage.py

    r2467 r2468  
    10691069        dmin = np.min(ring['ImtaCalc'][0])
    10701070        dmax = np.max(ring['ImtaCalc'][0])
    1071         ring['Dcalc'] = dmin+(dmax-dmin)/4.
     1071        if abs(Eij[0]) < abs(Eij[2]):         #tension
     1072            ring['Dcalc'] = dmin+(dmax-dmin)/4.
     1073        else:                       #compression
     1074            ring['Dcalc'] = dmin+3.*(dmax-dmin)/4.
    10721075#        ring['Dcalc'] = np.mean(ring['ImtaCalc'][0])
    10731076
Note: See TracChangeset for help on using the changeset viewer.