Ignore:
Timestamp:
Dec 13, 2017 12:09:08 PM (4 years ago)
Author:
vondreele
Message:

the cif reader will now read magnetic cif files as two phases - one nuclear with all atoms & the other magnetic with just the magnetic atoms. NB: spin flips are not yet properly assigned; working on that.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIdataGUI.py

    r3191 r3192  
    885885            psub = self.GPXtree.AppendItem(parent=sub,text=PhaseName)
    886886            self.GPXtree.SetItemPyData(psub,rd.Phase)
     887            try:
     888                rd.MPhase['General']['Name'] = G2obj.MakeUniqueLabel(PhaseName+' mag',phaseNameList)
     889                PhaseName = rd.MPhase['General']['Name'][:]
     890                newPhaseList.append(PhaseName)
     891                psub = self.GPXtree.AppendItem(parent=sub,text=PhaseName)
     892                self.GPXtree.SetItemPyData(psub,rd.MPhase)
     893            except TypeError:
     894                pass
    887895            self.GPXtree.Expand(self.root) # make sure phases are seen
    888896            self.GPXtree.Expand(sub)
Note: See TracChangeset for help on using the changeset viewer.