Changeset 760 for trunk/GSASIIIO.py


Ignore:
Timestamp:
Sep 20, 2012 9:58:16 PM (10 years ago)
Author:
toby
Message:

try to deal with unrecognized space group symbols

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIIO.py

    r697 r760  
    735735            SpGrp = EXPphase[key][:15].strip()
    736736            E,SGData = G2spc.SpcGroup(SpGrp)
     737            if E:
     738                E,SGData = G2spc.SpcGroup('P 1') # unlikely to need this
    737739        elif 'OD    ' in key:
    738740            SHdata = EXPphase[key].split() # may not have all 9 values
     
    830832            SpGrp = S[55:65]
    831833            E,SGData = G2spc.SpcGroup(SpGrp)
     834            # space group processing failed, try to look up name in table
     835            if E:
     836                SpGrpNorm = G2spc.StandardizeSpcName(SpGrp)
     837                if SpGrp:
     838                    E,SGData = G2spc.SpcGroup(SpGrp)
    832839            while E:
    833840                print G2spc.SGErrors(E)
     
    10881095        self.strictExtension = strictExtension
    10891096        self.warnings = ''
    1090         self.errors = ''
    10911097        # used for readers that will use multiple passes to read
    10921098        # more than one data block
Note: See TracChangeset for help on using the changeset viewer.