Skip to content

Commit 94dc459

Browse files
committed
shift source for ORCA atom inp to Draw Atoms - allow inclusion of molecules with SPG symmetry
1 parent 104aab3 commit 94dc459

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

GSASII/exports/G2export_PDB.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ def __init__(self,G2frame):
242242
G2frame=G2frame,
243243
formatName = 'ORCA Cartesian inp',
244244
extension='.inp',
245-
longFormatName = 'Export phase with basic ORCA Cartesian coordinates as .inp file'
245+
longFormatName = 'Export draw atoms with basic ORCA Cartesian coordinates as .inp file'
246246
)
247247
self.exporttype = ['phase']
248248
self.multiple = True
@@ -265,13 +265,14 @@ def Exporter(self,event=None):
265265
phasedict = self.Phases[phasenam] # pointer to current phase info
266266
General = phasedict['General']
267267
i = self.Phases[phasenam]['pId']
268-
Atoms = phasedict['Atoms']
268+
drawingData = phasedict['Drawing']
269+
cx,ct,cs,ci = drawingData['atomPtrs']
270+
Atoms = drawingData['Atoms']
269271
if not len(Atoms):
270272
print('**** ERROR - Phase '+phasenam+' has no atoms! ****')
271273
continue
272274
if len(self.phasenam) > 1: # if more than one filename is included, add a phase #
273275
self.filename = Oname + "_" + str(i) + self.extension
274-
cx,ct,cs,cia = General['AtomPtrs']
275276
Cell = General['Cell'][1:7]
276277
A,B = G2lat.cell2AB(Cell)
277278
self.Write('# GSAS-II generated ORCA input file\n# Basic Mode')

0 commit comments

Comments
 (0)