[Yt-svn] yt: 2 new changesets

hg at spacepope.org hg at spacepope.org
Mon Aug 30 14:26:32 PDT 2010


hg Repository: yt
details:   yt/rev/22be1cb11d78
changeset: 3356:22be1cb11d78
user:      J.S. Oishi <jsoishi at gmail.com>
date:
Mon Aug 30 14:25:01 2010 -0700
description:
fixed some DomainLeftEdge DomainRightEdge stuff in orion

hg Repository: yt
details:   yt/rev/01ad66fba746
changeset: 3357:01ad66fba746
user:      J.S. Oishi <jsoishi at gmail.com>
date:
Mon Aug 30 14:26:22 2010 -0700
description:
fixed commandline yt.

diffstat:

 setup.py                              |  2 +-
 yt/frontends/orion/data_structures.py |  2 +-
 yt/utilities/command_line.py          |  2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diffs (36 lines):

diff -r 490a14d23aad -r 01ad66fba746 setup.py
--- a/setup.py	Mon Aug 30 10:50:01 2010 -0700
+++ b/setup.py	Mon Aug 30 14:26:22 2010 -0700
@@ -55,7 +55,7 @@
                            'storage' : ['h5py'], 
                            'pdf' : ['pypdf']},
         entry_points = { 'console_scripts' : [
-                            'yt = yt.command_line:run_main',
+                            'yt = yt.utilities.command_line:run_main',
                             'enzo_test = yt.extensions.enzo_test:run_main',
                        ]},
         author="Matthew J. Turk",
diff -r 490a14d23aad -r 01ad66fba746 yt/frontends/orion/data_structures.py
--- a/yt/frontends/orion/data_structures.py	Mon Aug 30 10:50:01 2010 -0700
+++ b/yt/frontends/orion/data_structures.py	Mon Aug 30 14:26:22 2010 -0700
@@ -578,7 +578,7 @@
         self.conversion_factors = defaultdict(lambda: 1.0)
         self.time_units['1'] = 1
         self.units['1'] = 1.0
-        self.units['unitary'] = 1.0 / (self["DomainRightEdge"] - self["DomainLeftEdge"]).max()
+        self.units['unitary'] = 1.0 / (self.domain_right_edge - self.domain_left_edge).max()
         seconds = 1 #self["Time"]
         self.time_units['years'] = seconds / (365*3600*24.0)
         self.time_units['days']  = seconds / (3600*24.0)
diff -r 490a14d23aad -r 01ad66fba746 yt/utilities/command_line.py
--- a/yt/utilities/command_line.py	Mon Aug 30 10:50:01 2010 -0700
+++ b/yt/utilities/command_line.py	Mon Aug 30 14:26:22 2010 -0700
@@ -25,7 +25,7 @@
 
 from yt.mods import *
 from yt.funcs import *
-import yt.cmdln as cmdln
+import cmdln as cmdln
 import optparse, os, os.path, math, sys, time, subprocess
 
 def _fix_pf(arg):



More information about the yt-svn mailing list