Ignore:
Timestamp:
Sep 15, 2016 2:03:04 PM (6 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/imports/G2phase.py

    r2406 r2468  
    296296                        XYZ = Atom[3:6]
    297297                        Atom[7],Atom[8] = G2spc.SytSym(XYZ,SGData)
     298                        if Ptype == 'magnetic':
     299                            Atom = Atom[:7]+[0.,0.,0.]+Atom[7:]
    298300                        Atom.append(ran.randint(0,sys.maxint))
    299301                        Atoms.append(Atom)
    300302                    elif key[11:] == 'M' and key[6:8] == 'AT':
    301303                        S = EXPphase[key]
    302                         Mag = [float(S[:10]),float(S[10:20]),float(S[20:30])]
    303                         Atoms[-1] = Atoms[-1][:7]+Mag+Atoms[-1][7:]
     304                        Atoms[-1][7:10] = [float(S[:10]),float(S[10:20]),float(S[20:30])]
    304305        elif Ptype == 'macromolecular':
    305306            for key in keyList:
Note: See TracChangeset for help on using the changeset viewer.