[yt-svn] commit/yt: 2 new changesets

Bitbucket commits-noreply at bitbucket.org
Fri Dec 7 13:22:35 PST 2012


2 new commits in yt:


https://bitbucket.org/yt_analysis/yt/changeset/9103376525f0/
changeset:   9103376525f0
branch:      yt
user:        MatthewTurk
date:        2012-12-07 22:22:12
summary:     Updating to gold004
affected #:  1 file

diff -r 4556a7217a82682b4fda7cece237a0641538f8bb -r 9103376525f0522e87c7f8252d358e3eedb750ce yt/config.py
--- a/yt/config.py
+++ b/yt/config.py
@@ -61,7 +61,7 @@
     ipython_notebook = 'False',
     answer_testing_tolerance = '3',
     answer_testing_bitwise = 'False',
-    gold_standard_filename = 'gold003',
+    gold_standard_filename = 'gold004',
     local_standard_filename = 'local001',
     sketchfab_api_key = 'None'
     )



https://bitbucket.org/yt_analysis/yt/changeset/182a56beac8b/
changeset:   182a56beac8b
branch:      yt
user:        MatthewTurk
date:        2012-12-07 22:22:30
summary:     Merged
affected #:  5 files

diff -r 9103376525f0522e87c7f8252d358e3eedb750ce -r 182a56beac8b8a449915e157e5d7e5e2901da8da doc/install_script.sh
--- a/doc/install_script.sh
+++ b/doc/install_script.sh
@@ -458,7 +458,7 @@
 get_ytproject nose-1.2.1.tar.gz 
 get_ytproject python-hglib-0.2.tar.gz
 get_ytproject sympy-0.7.2.tar.gz
-get_ytproject Rockstar-0.99.tar.gz
+get_ytproject rockstar-0.99.6.tar.gz
 if [ $INST_BZLIB -eq 1 ]
 then
     if [ ! -e bzip2-1.0.5/done ]


diff -r 9103376525f0522e87c7f8252d358e3eedb750ce -r 182a56beac8b8a449915e157e5d7e5e2901da8da yt/data_objects/data_containers.py
--- a/yt/data_objects/data_containers.py
+++ b/yt/data_objects/data_containers.py
@@ -869,9 +869,11 @@
         else:
             self.fields = ensure_list(fields)
         from yt.visualization.plot_window import \
-            GetBoundsAndCenter, PWViewerMPL
+            GetWindowParameters, PWViewerMPL
         from yt.visualization.fixed_resolution import FixedResolutionBuffer
-        (bounds, center) = GetBoundsAndCenter(axis, center, width, self.pf)
+        (bounds, center, units) = GetWindowParameters(axis, center, width, self.pf)
+        if axes_unit is None and units != ('1', '1'):
+            axes_unit = units
         pw = PWViewerMPL(self, bounds, origin=origin, frb_generator=FixedResolutionBuffer, 
                          plot_type=plot_type)
         pw.set_axes_unit(axes_unit)


diff -r 9103376525f0522e87c7f8252d358e3eedb750ce -r 182a56beac8b8a449915e157e5d7e5e2901da8da yt/data_objects/tests/test_projection.py
--- a/yt/data_objects/tests/test_projection.py
+++ b/yt/data_objects/tests/test_projection.py
@@ -1,9 +1,14 @@
 from yt.testing import *
+import os
 
 def setup():
     from yt.config import ytcfg
     ytcfg["yt","__withintesting"] = "True"
 
+def teardown_func(fns):
+    for fn in fns:
+        os.remove(fn)
+
 def test_projection():
     for nprocs in [8, 1]:
         # We want to test both 1 proc and 8 procs, to make sure that
@@ -22,6 +27,7 @@
             xax = x_dict[ax]
             yax = y_dict[ax]
             for wf in ["Density", None]:
+                fns = []
                 proj = pf.h.proj(ax, ["Ones", "Density"], weight_field = wf)
                 yield assert_equal, proj["Ones"].sum(), proj["Ones"].size
                 yield assert_equal, proj["Ones"].min(), 1.0
@@ -30,6 +36,8 @@
                 yield assert_equal, np.unique(proj["py"]), uc[yax]
                 yield assert_equal, np.unique(proj["pdx"]), 1.0/(dims[xax]*2.0)
                 yield assert_equal, np.unique(proj["pdy"]), 1.0/(dims[yax]*2.0)
+                pw = proj.to_pw()
+                fns += pw.save()
                 frb = proj.to_frb((1.0,'unitary'), 64)
                 for proj_field in ['Ones', 'Density']:
                     yield assert_equal, frb[proj_field].info['data_source'], \
@@ -50,6 +58,7 @@
                             proj.center
                     yield assert_equal, frb[proj_field].info['weight_field'], \
                             wf
+                teardown_func(fns)
             # wf == None
             yield assert_equal, wf, None
             v1 = proj["Density"].sum()


diff -r 9103376525f0522e87c7f8252d358e3eedb750ce -r 182a56beac8b8a449915e157e5d7e5e2901da8da yt/data_objects/tests/test_slice.py
--- a/yt/data_objects/tests/test_slice.py
+++ b/yt/data_objects/tests/test_slice.py
@@ -1,9 +1,14 @@
 from yt.testing import *
+import os
 
 def setup():
     from yt.config import ytcfg
     ytcfg["yt","__withintesting"] = "True"
 
+def teardown_func(fns):
+    for fn in fns:
+        os.remove(fn)
+
 def test_slice():
     for nprocs in [8, 1]:
         # We want to test both 1 proc and 8 procs, to make sure that
@@ -21,6 +26,7 @@
             xax = x_dict[ax]
             yax = y_dict[ax]
             for wf in ["Density", None]:
+                fns = []
                 slc = pf.h.slice(ax, slc_pos, ["Ones", "Density"])
                 yield assert_equal, slc["Ones"].sum(), slc["Ones"].size
                 yield assert_equal, slc["Ones"].min(), 1.0
@@ -29,6 +35,8 @@
                 yield assert_equal, np.unique(slc["py"]), uc[yax]
                 yield assert_equal, np.unique(slc["pdx"]), 1.0/(dims[xax]*2.0)
                 yield assert_equal, np.unique(slc["pdy"]), 1.0/(dims[yax]*2.0)
+                pw = slc.to_pw()
+                fns += pw.save()
                 frb = slc.to_frb((1.0,'unitary'), 64)
                 for slc_field in ['Ones', 'Density']:
                     yield assert_equal, frb[slc_field].info['data_source'], \
@@ -49,7 +57,7 @@
                             slc.center
                     yield assert_equal, frb[slc_field].info['coord'], \
                             slc_pos
+                teardown_func(fns)
             # wf == None
             yield assert_equal, wf, None
 
-


diff -r 9103376525f0522e87c7f8252d358e3eedb750ce -r 182a56beac8b8a449915e157e5d7e5e2901da8da yt/visualization/tests/test_plotwindow.py
--- a/yt/visualization/tests/test_plotwindow.py
+++ b/yt/visualization/tests/test_plotwindow.py
@@ -1,7 +1,7 @@
 from yt.testing import *
 from yt.mods import SlicePlot, ProjectionPlot, \
     OffAxisSlicePlot, OffAxisProjectionPlot
-import glob, os
+import os
 
 def setup():
     from yt.config import ytcfg

Repository URL: https://bitbucket.org/yt_analysis/yt/

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.



More information about the yt-svn mailing list