Changeset 1118 for trunk/exports


Ignore:
Timestamp:
Oct 21, 2013 3:25:03 PM (8 years ago)
Author:
toby
Message:

fix map export bug

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/exports/G2export_ASCIImap.py

    • Property svn:keywords set to Date Author Revision URL Id
    r1117 r1118  
    22# -*- coding: utf-8 -*-
    33########### 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$
    99########### SVN repository information ###################
    1010'''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.
     11Charge-flip map.
    1212'''
    1313import os.path
    1414import GSASIIpath
    15 GSASIIpath.SetVersionNumber("$Revision: 1102 $")
     15GSASIIpath.SetVersionNumber("$Revision$")
    1616import GSASIIIO as G2IO
    1717#import GSASIIgrid as G2gd
     
    5959            fmt = 3*" {:9.5f}" + 3*" {:9.3f}"
    6060            self.Write(fmt.format(*cellList[:6]))
    61             #print(fmt.format(*cellList[:6]))
    6261            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))
    6963            for i in range(nx):
    7064                for j in range(ny):
Note: See TracChangeset for help on using the changeset viewer.