[Yt-svn] yt: Fixed domain once more

hg at spacepope.org hg at spacepope.org
Wed Nov 10 16:02:06 PST 2010


hg Repository: yt
details:   yt/rev/553a10ce962e
changeset: 3531:553a10ce962e
user:      Christopher Erick Moody <cemoody at ucsc.edu>
date:
Wed Nov 10 16:01:56 2010 -0800
description:
Fixed domain once more

diffstat:

 yt/analysis_modules/sunrise_export/sunrise_exporter.py |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (14 lines):

diff -r 4256464c070b -r 553a10ce962e yt/analysis_modules/sunrise_export/sunrise_exporter.py
--- a/yt/analysis_modules/sunrise_export/sunrise_exporter.py	Wed Nov 10 15:27:01 2010 -0700
+++ b/yt/analysis_modules/sunrise_export/sunrise_exporter.py	Wed Nov 10 16:01:56 2010 -0800
@@ -176,8 +176,8 @@
 
     st_table.header.update("hierarch lengthunit", "kpc", comment="Length unit for grid")
     for i,a in enumerate('xyz'):
-        st_table.header.update("min%s" % a, DLE[i] * pf['kpc']/pf.domain_dimensions)
-        st_table.header.update("max%s" % a, DRE[i] * pf['kpc']/pf.domain_dimensions)
+        st_table.header.update("min%s" % a, DLE[i] * pf['kpc']/pf.domain_dimensions[i])
+        st_table.header.update("max%s" % a, DRE[i] * pf['kpc']/pf.domain_dimensions[i])
         st_table.header.update("n%s" % a, DX[i])
         st_table.header.update("subdiv%s" % a, 2)
     st_table.header.update("subdivtp", "UNIFORM", "Type of grid subdivision")



More information about the yt-svn mailing list