Changeset 3172 for trunk/imports/G2phase_CIF.py
- Timestamp:
- Dec 4, 2017 4:22:31 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/imports/G2phase_CIF.py
r3169 r3172 140 140 if not SpGrp: 141 141 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 143 143 magnetic = True 144 144 self.Phase['General']['Type'] = 'magnetic' … … 165 165 else: 166 166 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' 167 169 self.warnings += '\nThe space group has been set to "P 1". ' 168 170 self.warnings += "Change this in phase's General tab." … … 171 173 SGData = G2obj.P1SGData # P 1 172 174 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 173 184 # cell parameters 174 185 cell = [] … … 178 189 self.Phase['General']['Cell'] = [False,]+cell+[Volume,] 179 190 if Super: 180 print(blk.get('_cell_modulation_dimension',''))181 191 if int(blk.get('_cell_modulation_dimension','')) > 1: 182 192 msg = 'more than 3+1 super symmetry is not allowed in GSAS-II'
Note: See TracChangeset
for help on using the changeset viewer.