Changeset 3220


Ignore:
Timestamp:
Jan 12, 2018 2:18:13 PM (6 years ago)
Author:
vondreele
Message:

minor fixes to commensurate magnetic cif import & display

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIphsGUI.py

    r3219 r3220  
    8686        cents = [0,]
    8787        if len(Cents) > 1:
    88             cents = text[-1].split(';')
     88            cents = self.text[-1].split(';')
    8989        lentable = len(self.table)
    90         for line in text:
     90        for line in self.text:
    9191            mainSizer.Add(wx.StaticText(self.panel,label='     %s     '%(line)),0,WACV)
    9292        ncol = self.table[0].count(',')+2
     
    53125312                        xyzB = np.array(atomB[cx:cx+3])
    53135313                        Uij = atomB[cuij:cuij+6]
    5314 #                        GSASIIpath.IPyBreak()
    53155314                        result = G2spc.GenAtom(xyzB,SGData,False,Uij,True)
    53165315                        for item in result:
  • trunk/GSASIIspc.py

    r3219 r3220  
    502502    mulList = [2,3,3,4,4,5,5,5,5,6,6,7,7,7,7,7,7,8,8,8,8,9,9,9,9,9,9]
    503503    prodList = [1.,1.,2.,1.,3.,1.,2.,3.,4.,1.,5.,1.,2.,3.,4.,5.,6.,1.,3.,5.,7.,1.,2.,4.,5.,7.,8.]
     504    nCen = len(Cen)
    504505    for i,cen in enumerate(Cen):
    505506        txt = ''
     
    513514                    break
    514515        lattTxt += txt[:-1]+'; '
    515         if i and not i%8:
     516        if i and not i%8 and i < nCen-1:    #not for the last cen!
    516517            lattTxt += '\n     '
    517518    return lattTxt[:-2]
     
    30893090        'P 6 c c','P 63 c m','P 63 m c','P -6 m 2','P -6 c 2','P -6 2 m',
    30903091        'P -6 2 c','P 6/m m m','P 6/m c c','P 63/m c m','P 63/m m c',),
    3091     'Pm3m': ('P 2 3','P 21 3','P m 3','P n 3','P a 3','P 4 3 2','P 42 3 2',
    3092         'P 43 3 2','P 41 3 2','P -4 3 m','P -4 3 n','P m 3 m','P m -3 m','P n 3 n',
    3093         'P m 3 n','P n 3 m','P n -3 n','P n -3 m','P m -3 n',),
     3092    'Pm3m': ('P 2 3','P 21 3','P m 3','P m -3','P n 3','P n -3','P a 3','P a -3',
     3093        'P 4 3 2','P 42 3 2','P 43 3 2','P 41 3 2','P -4 3 m','P -4 3 n',
     3094        'P m 3 m','P m -3 m','P n 3 n','P n -3 n',
     3095        'P m 3 n','P m -3 n','P n 3 m','P n -3 m',),
    30943096    'Im3m':('I 2 3','I 21 3','I m -3','I a -3', 'I 4 3 2','I 41 3 2',
    30953097        'I -4 3 m', 'I -4 3 d','I m -3 m','I m 3 m','I a -3 d','I n -3 n'),
  • trunk/imports/G2phase_CIF.py

    r3219 r3220  
    250250                if magnetic:
    251251                    self.MPhase['General']['SGData'] = SGData
    252 #                    self.MPhase['General']['SGData']['SpnFlp'] = censpn
    253252                    self.MPhase['General']['SGData']['MagSpGrp'] = MSSpGrp.replace(',','').replace('\\','')
    254 #                    self.MPhase['General']['SGData']['MagPtGp'] = blk.get('_space_group.magn_point_group')
    255 #                    if not self.MPhase['General']['SGData']['MagPtGp']:
    256 #                        self.MPhase['General']['SGData']['MagPtGp'] = blk.get('_space_group.magn_point_group_name')
    257253                    self.MPhase['General']['SSGData'] = SSGData
    258     #                GenSym,GenFlg = G2spc.GetGenSym(SGData)
    259     #                self.MPhase['General']['SGData']['GenSym'] = GenSym
    260     #                self.MPhase['General']['SGData']['GenFlg'] = GenFlg
    261254
    262255            if magnetic:    #replace std operaors with those from cif file - probably not the same!
     
    304297                    spnflp = []
    305298                    for op in sgoploop:
    306                         M,T,S = G2spc.MagText2MTS(op[opid])
    307                         SGData['SGOps'].append([np.array(M,dtype=float),T])
    308                         spnflp.append(S)
     299                        try:
     300                            M,T,S = G2spc.MagText2MTS(op[opid])
     301                            SGData['SGOps'].append([np.array(M,dtype=float),T])
     302                            spnflp.append(S)
     303                        except KeyError:
     304                            self.warnings += 'Space group operator '+op[opid]+' is not recognized by GSAS-II'
     305                            return False
    309306                    censpn = []
    310307                    for cent in sgcenloop:
     
    321318                    MagPtGp = blk.get('_space_group_magn.point_group_name')
    322319                self.MPhase['General']['SGData']['MagPtGp'] = MagPtGp
    323 
    324                    
    325320
    326321            # cell parameters
Note: See TracChangeset for help on using the changeset viewer.