Changeset 3491
- Timestamp:
- Jul 20, 2018 3:53:53 PM (5 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/exports/G2export_CIF.py
r3487 r3491 1251 1251 spacegroup = spacegroup[0].upper() + spacegroup[1:].lower().rstrip('rh ') 1252 1252 WriteCIFitem(self.fp, '_space_group_magn.name_BNS',spacegroup) 1253 WriteCIFitem(self.fp, '_space_group.magn_point_group',phasedict['General']['SGData']['MagPtGp']) 1254 1253 1255 # generate symmetry operations including centering and center of symmetry 1254 1256 SymOpList,offsetList,symOpList,G2oprList,G2opcodes = G2spc.AllOps( … … 2065 2067 self.Write(' ') 2066 2068 self.Write(70*'#') 2067 WriteCIFitem(self.fp, 'data_'+phaseOnly )2069 WriteCIFitem(self.fp, 'data_'+phaseOnly.replace(' ','_')) 2068 2070 #phaseblk = self.Phases[phaseOnly] # pointer to current phase info 2069 2071 # report the phase info -
trunk/imports/G2phase_CIF.py
r3465 r3491 24 24 import numpy as np 25 25 import re 26 import copy 26 27 import GSASIIIO as G2IO 27 28 import GSASIIobj as G2obj … … 107 108 continue 108 109 else: 109 choice[-1] += name.strip() [:20]+ ', '110 choice[-1] += name.strip() + ', ' 110 111 break 111 112 na = len(cf[blknm].get("_atom_site_fract_x")) … … 581 582 else: # no name found, use block name for lack of a better choice 582 583 name = blknm 583 self.Phase['General']['Name'] = name.strip() [:20]584 self.Phase['General']['Name'] = name.strip() 584 585 self.Phase['General']['Super'] = Super 585 586 if magnetic: 586 587 self.MPhase['General']['Type'] = 'magnetic' 587 self.MPhase['General']['Name'] = name.strip() [:20]+' mag'588 self.MPhase['General']['Name'] = name.strip()+' mag' 588 589 self.MPhase['General']['Super'] = Super 589 590 if Super: … … 593 594 self.MPhase['General']['SuperVec'] = SuperVec 594 595 self.MPhase['General']['SuperSg'] = SuperSg 596 if 'mcif' not in filename: 597 self.Phase = copy.deepcopy(self.MPhase) 598 del self.MPhase 595 599 else: 596 600 self.MPhase = None
Note: See TracChangeset
for help on using the changeset viewer.