Changeset 3168 for trunk/GSASIIphsGUI.py


Ignore:
Timestamp:
Nov 30, 2017 3:00:18 PM (6 years ago)
Author:
vondreele
Message:

fix phase data copy operations - needed copy.deepcopy in 2 places
(partial) fix on cif import - for incommensurate & magnetic structures
fix to StarFile? for latin1 encoding

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIphsGUI.py

    r3148 r3168  
    22532253            if r < 0 and c < 0:
    22542254                for row in range(Atoms.GetNumberRows()):
    2255                     Atoms.SelectRow(row,True)                   
     2255                    Atoms.SelectRow(row,True)                   
     2256                wx.CallAfter(Paint)
     2257                return
    22562258            if r < 0:                          #double click on col label! Change all atoms!
    22572259                noSkip = True
     
    44714473        cx,ct,cs,cia = generalData['AtomPtrs']
    44724474        atomData = data['Atoms']
    4473         D4Map = generalData['4DmapData']
     4475        D4Map = generalData.get('4DmapData',{'rho':[]})
    44744476        if waveData.GetSizer():
    44754477            waveData.GetSizer().Clear(True)
     
    51935195                                str(int(Cell[0]))+','+str(int(Cell[1]))+','+str(int(Cell[2]))                           
    51945196                            atom[cs-1] = G2spc.StringOpsProd(atomOp,newOp,SGData)
    5195                             if cmx:
     5197                            if cmx:         #magnetic moment
    51965198                                opNum = G2spc.GetOpNum(OprNum,SGData)
    51975199                                mom = np.inner(np.array(atom[cmx:cmx+3]),Bmat)
    5198 #                                print OprNum,newOp,opNum,SpnFlp
     5200#                                print (OprNum,newOp,opNum,nl.det(M),SpnFlp)
    51995201                                atom[cmx:cmx+3] = np.inner(np.inner(mom,M),Amat)*nl.det(M)*SpnFlp[opNum-1]
    52005202                            if atom[cui] == 'A':
     
    63756377            if dlg.ShowModal() == wx.ID_OK:
    63766378                for sel in dlg.GetSelections():
    6377                     data['Histograms'][keyList[sel]].update(copyDict)
     6379                    data['Histograms'][keyList[sel]].update(copy.deepcopy(copyDict))
    63786380        finally:
    63796381            dlg.Destroy()
     
    64326434                                    data['Histograms'][item][name][2][itm][1] = copy.deepcopy(copyDict[name][itm])
    64336435                            elif name == 'Twins':
    6434                                 data['Histograms'][item]['Twins'][0][1][1] = copyDict['Twins']
     6436                                data['Histograms'][item]['Twins'][0][1][1] = copy.deepcopy(copyDict['Twins'])
    64356437                            else:
    64366438                                try:
     
    64666468            G2G.G2MessageBox(G2frame,'No histograms to copy to')
    64676469            return
    6468         copyDict = {}
    64696470        if 'HKLF' in sourceDict['Histogram']:
    64706471            copyNames = ['Scale','Extinction','Babinet','Flack','Twins','Fix FXU']
Note: See TracChangeset for help on using the changeset viewer.