Changeset 1118
- Timestamp:
- Oct 21, 2013 3:25:03 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/exports/G2export_ASCIImap.py
- Property svn:keywords set to Date Author Revision URL Id
r1117 r1118 2 2 # -*- coding: utf-8 -*- 3 3 ########### SVN repository information ################### 4 # $Date : 2013-10-12 22:47:06 -0500 (Sat, 12 Oct 2013)$5 # $Author : toby$6 # $Revision : 1102$7 # $URL : https://subversion.xor.aps.anl.gov/pyGSAS/trunk/exports/G2export_examples.py$8 # $Id : G2export_examples.py 1102 2013-10-13 03:47:06Z toby$4 # $Date$ 5 # $Author$ 6 # $Revision$ 7 # $URL$ 8 # $Id$ 9 9 ########### SVN repository information ################### 10 10 '''Code to demonstrate how export routines are created: Export a Fourier or 11 Charge-flip map. Note: I am not sure this is working properly, yet.11 Charge-flip map. 12 12 ''' 13 13 import os.path 14 14 import GSASIIpath 15 GSASIIpath.SetVersionNumber("$Revision : 1102$")15 GSASIIpath.SetVersionNumber("$Revision$") 16 16 import GSASIIIO as G2IO 17 17 #import GSASIIgrid as G2gd … … 59 59 fmt = 3*" {:9.5f}" + 3*" {:9.3f}" 60 60 self.Write(fmt.format(*cellList[:6])) 61 #print(fmt.format(*cellList[:6]))62 61 nx,ny,nz = rho.shape 63 #print(3*" {:3d}".format(nx,ny,nz)) 64 self.Write(3*" {:3d}".format(nx,ny,nz)) 65 # reverse order of map 66 # for i in range(nx-1,-1,-1): 67 # for j in range(ny-1,-1,-1): 68 # for k in range(nz-1,-1,-1): 62 self.Write(" {:3d} {:3d} {:3d}".format(nx,ny,nz)) 69 63 for i in range(nx): 70 64 for j in range(ny):
Note: See TracChangeset
for help on using the changeset viewer.