Changeset 3521 for trunk/GSASIIspc.py


Ignore:
Timestamp:
Jul 31, 2018 2:57:22 PM (4 years ago)
Author:
vondreele
Message:

fix In neutron scattering length info
add MAXMAGN.py
minor changes to testXNFF & GSASIItestplot.py
work on transform some more

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIspc.py

    r3465 r3521  
    33763376        gray = " 1'"
    33773377        rspc = rspc.replace("1'",'')
    3378     elif rspc[-1:] == 'H': # hexagonal is assumed and thus can be ignored
     3378    rspc = rspc.replace("'",'')
     3379    if rspc[-1:] == 'H': # hexagonal is assumed and thus can be ignored
    33793380        rspc = rspc[:-1]
    3380     else:
    3381         rspc = rspc.replace("'",'')
     3381    if rspc[1:3] in ['M3','N3','A3','D3']:      #fix cubic old style
     3382        rspc.replace('3','-3')
     3383    bns = -1
     3384    try:
     3385        bns = rspc.index('_')
     3386        rspc = rspc.replace(rspc[bns:bns+2],'')
     3387    except ValueError:
     3388        pass
    33823389    # look for a match in the spacegroup lists
    33833390    for i in spglist.values():
     
    33913398    # not found
    33923399        return ''
     3400   
     3401def SpaceGroupNumber(spcgroup):
     3402    SGNo = -1
     3403    SpcGp = StandardizeSpcName(spcgroup)
     3404    if not SpcGp:
     3405        return SGNo
     3406    try:
     3407        SGNo = spgbyNum.index(SpcGp)
     3408    except ValueError:
     3409        pass
     3410    return SGNo
     3411
    33933412
    33943413spgbyNum = []
Note: See TracChangeset for help on using the changeset viewer.