Changeset 761 for trunk/GSASIIphsGUI.py


Ignore:
Timestamp:
Sep 20, 2012 11:02:37 PM (10 years ago)
Author:
toby
Message:

try looking up space groups in table when needed with user input

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIphsGUI.py

    r758 r761  
    500500                SpcGp = SGTxt.GetValue()
    501501                SGErr,SGData = G2spc.SpcGroup(SpcGp)
     502                # try a lookup on the user-supplied name
     503                if SGErr:
     504                    SpGrpNorm = G2spc.StandardizeSpcName(SpcGp)
     505                    if SpGrpNorm:
     506                        E,SGData = G2spc.SpcGroup(SpGrpNorm)
     507                        if not E: SGErr = False
    502508                if SGErr:
    503509                    text = [G2spc.SGErrors(SGErr)+'\nSpace Group set to previous']
Note: See TracChangeset for help on using the changeset viewer.