Ignore:
Timestamp:
Dec 4, 2017 4:22:31 PM (5 years ago)
Author:
vondreele
Message:

change from wx.DefaultSize? to our defaults if window size is 'None'
A TODO in Integrate for saving the x,y --> 2th,azm map between images
complete fix to allowed super symmetries by lattice + pt. grp lookup
also fix operator check for complete super symmetry
finish cif import of super symmetry cases

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/imports/G2phase_CIF.py

    r3169 r3172  
    140140            if not SpGrp:
    141141                SpGrp = blk.get("_parent_space_group.name_H-M",'')
    142                 if SpGrp:
     142                if SpGrp:   #TODO need to decide if read nuclear phase or magnetic phase
    143143                    magnetic = True
    144144                    self.Phase['General']['Type'] = 'magnetic'
     
    165165                else:
    166166                    self.warnings += 'ERROR in space group symbol '+SpGrp
     167                    if 'X' in SpGrp:
     168                        self.warnings += '\nAd hoc incommensurate space groups not allowed in GSAS-II'
    167169                    self.warnings += '\nThe space group has been set to "P 1". '
    168170                    self.warnings += "Change this in phase's General tab."
     
    171173                SGData = G2obj.P1SGData # P 1
    172174            self.Phase['General']['SGData'] = SGData
     175            if Super:
     176                E,SSGData = G2spc.SSpcGroup(SGData,SuperSg)
     177                if E:
     178                    self.warnings += 'Invalid super symmetry symbol '+SpGrp+SuperSg
     179                    self.warnings += '\n'+E
     180                    SuperSg = SuperSg[:SuperSg.index(')')+1]
     181                    self.warnings += '\nNew super symmetry symbol '+SpGrp+SuperSg
     182                    E,SSGData = G2spc.SSpcGroup(SGData,SuperSg)
     183                self.Phase['General']['SSGData'] = SSGData
    173184            # cell parameters
    174185            cell = []
     
    178189            self.Phase['General']['Cell'] = [False,]+cell+[Volume,]
    179190            if Super:
    180                 print(blk.get('_cell_modulation_dimension',''))
    181191                if int(blk.get('_cell_modulation_dimension','')) > 1:
    182192                    msg = 'more than 3+1 super symmetry is not allowed in GSAS-II'
Note: See TracChangeset for help on using the changeset viewer.