Changeset 4488 for trunk/GSASIIspc.py


Ignore:
Timestamp:
Jun 16, 2020 9:39:08 AM (3 years ago)
Author:
vondreele
Message:

another try at incommensurate magnetic SF; fix bug in plotting mag moments.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIspc.py

    r4485 r4488  
    35673567        return newX
    35683568       
    3569 def ApplyStringOpsMom(A,SGData,SSGData,Mom):
     3569def ApplyStringOpsMom(A,SGData,Mom):
    35703570    '''Applies string operations to modulated magnetic moment components used in drawing
    35713571    '''
    35723572    SGOps = SGData['SGOps']
    3573     SSGCen = SSGData['SSGCen']
    35743573    Ax = A.split('+')
    35753574    Ax[0] = int(Ax[0])
     
    35853584    M,T = SGOps[nA]
    35863585    newMom = np.inner(Mom,M).T*SGData['MagMom'][NA+nC]
    3587     if SSGCen[iAx//100][3]:     #flip spin for BNS centered atoms
    3588         newMom *= -1.
    35893586    return newMom
    35903587       
Note: See TracChangeset for help on using the changeset viewer.