Changeset 1953 for trunk/GSASIIphsGUI.py


Ignore:
Timestamp:
Aug 10, 2015 9:58:17 AM (8 years ago)
Author:
vondreele
Message:

code simplification in FillUnitCell? & MoveToUnitCell?
fix error in GenAtom?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIphsGUI.py

    r1951 r1953  
    31873187                            for key in Opp:
    31883188                                if noDuplicate(Opp[key],atomData):
    3189                                     unit = np.array([eval(i) for i in key.split(',')])-item[3]
     3189                                    unit = np.array(eval(key))*1.-item[3]
    31903190                                    cell = '%d+%d,%d,%d'%(item[2],unit[0],unit[1],unit[2])
    31913191                                    atom[cx:cx+3] = Opp[key]
     
    32023202                            for key in Opp:
    32033203                                if noDuplicate(Opp[key],atomData):
    3204                                     unit = np.array([eval(i) for i in key.split(',')])-item[2]
     3204                                    unit = np.array(eval(key))*1.-item[2]
    32053205                                    cell = '%d+%d,%d,%d'%(item[1],unit[0],unit[1],unit[2])
    32063206                                    atom[cx:cx+3] = Opp[key]
Note: See TracChangeset for help on using the changeset viewer.