Changeset 3521 for trunk/GSASIIspc.py
- Timestamp:
- Jul 31, 2018 2:57:22 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIspc.py
r3465 r3521 3376 3376 gray = " 1'" 3377 3377 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 3379 3380 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 3382 3389 # look for a match in the spacegroup lists 3383 3390 for i in spglist.values(): … … 3391 3398 # not found 3392 3399 return '' 3400 3401 def 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 3393 3412 3394 3413 spgbyNum = []
Note: See TracChangeset
for help on using the changeset viewer.