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

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Wed Mar 30 18:47:06 PDT 2016


6 new commits in yt:

https://bitbucket.org/yt_analysis/yt/commits/052e99a9b5ff/
Changeset:   052e99a9b5ff
Branch:      yt
User:        xarthisius
Date:        2016-03-15 23:06:28+00:00
Summary:     Add blacklist to test_cookbook.py
Affected #:  1 file

diff -r bd8a7c0ed718365c84f355f9b30a1a95bd77c98b -r 052e99a9b5ffea8415cd25481d2ef2d6dfd0a395 doc/source/cookbook/tests/test_cookbook.py
--- a/doc/source/cookbook/tests/test_cookbook.py
+++ b/doc/source/cookbook/tests/test_cookbook.py
@@ -15,12 +15,15 @@
 
 
 PARALLEL_TEST = {"rockstar_nest.py": "3"}
+BLACKLIST = ["opengl_ipython.py", "opengl_vr.py"]
 
 
 def test_recipe():
     '''Dummy test grabbing all cookbook's recipes'''
     for fname in glob.glob("doc/source/cookbook/*.py"):
         recipe = os.path.basename(fname)
+        if recipe in BLACKLIST:
+            continue
         check_recipe.description = "Testing recipe: %s" % recipe
         if recipe in PARALLEL_TEST:
             yield check_recipe, \


https://bitbucket.org/yt_analysis/yt/commits/642dad47c849/
Changeset:   642dad47c849
Branch:      yt
User:        xarthisius
Date:        2016-03-30 22:32:43+00:00
Summary:     Add rockstar_nest.py to blacklisted recipes for py3
Affected #:  1 file

diff -r 052e99a9b5ffea8415cd25481d2ef2d6dfd0a395 -r 642dad47c849afbf4b9ca564a98030d951670e3a doc/source/cookbook/tests/test_cookbook.py
--- a/doc/source/cookbook/tests/test_cookbook.py
+++ b/doc/source/cookbook/tests/test_cookbook.py
@@ -11,12 +11,15 @@
 """
 import glob
 import os
+import sys
 import subprocess
 
 
 PARALLEL_TEST = {"rockstar_nest.py": "3"}
 BLACKLIST = ["opengl_ipython.py", "opengl_vr.py"]
 
+if sys.version_info >= (3,0,0):
+    BLACKLIST.append("rockstar_nest.py")
 
 def test_recipe():
     '''Dummy test grabbing all cookbook's recipes'''


https://bitbucket.org/yt_analysis/yt/commits/5629c3365653/
Changeset:   5629c3365653
Branch:      yt
User:        xarthisius
Date:        2016-03-30 23:12:15+00:00
Summary:     range() argument needs to be an int
Affected #:  1 file

diff -r 642dad47c849afbf4b9ca564a98030d951670e3a -r 5629c3365653b56cff1dd95ea2d521f1cb81e41f yt/frontends/gadget_fof/tests/test_outputs.py
--- a/yt/frontends/gadget_fof/tests/test_outputs.py
+++ b/yt/frontends/gadget_fof/tests/test_outputs.py
@@ -62,7 +62,7 @@
     for hid in range(0, ds.index.particle_count["Group"]):
         my_h = ds.halo("Group", hid)
         h_ids = my_h["ID"]
-        for sid in range(my_h["subhalo_number"]):
+        for sid in range(int(my_h["subhalo_number"][0])):
             my_s = ds.halo("Subhalo", (my_h.particle_identifier, sid))
             total_sub += my_s["ID"].size
             total_int += np.intersect1d(h_ids, my_s["ID"]).size


https://bitbucket.org/yt_analysis/yt/commits/d35b76a35dd4/
Changeset:   d35b76a35dd4
Branch:      yt
User:        xarthisius
Date:        2016-03-30 23:12:52+00:00
Summary:     wrap dict.keys() in list() where necessary
Affected #:  1 file

diff -r 5629c3365653b56cff1dd95ea2d521f1cb81e41f -r d35b76a35dd4fb9e14a9816f48f3bf62d38598e7 yt/visualization/profile_plotter.py
--- a/yt/visualization/profile_plotter.py
+++ b/yt/visualization/profile_plotter.py
@@ -462,7 +462,7 @@
         """
         if field == "all":
             self.x_log = log
-            for field in self.profiles[0].field_data.keys():
+            for field in list(self.profiles[0].field_data.keys()):
                 self.y_log[field] = log
         else:
             field, = self.profiles[0].data_source._determine_fields([field])
@@ -578,7 +578,7 @@
 
         """
         if field is 'all':
-            fields = self.axes.keys()
+            fields = list(self.axes.keys())
         else:
             fields = ensure_list(field)
         for profile in self.profiles:
@@ -971,7 +971,7 @@
         >>>  plot.annotate_text(1e-15, 5e4, "Hello YT")
 
         """
-        for f in self.data_source._determine_fields(self.plots.keys()):
+        for f in self.data_source._determine_fields(list(self.plots.keys())):
             if self.plots[f].figure is not None and text is not None:
                 self.plots[f].axes.text(xpos, ypos, text,
                                         fontproperties=self._font_properties,


https://bitbucket.org/yt_analysis/yt/commits/3d5af6f5d494/
Changeset:   3d5af6f5d494
Branch:      yt
User:        xarthisius
Date:        2016-03-30 23:13:06+00:00
Summary:     Add missing gadget_fof tests
Affected #:  1 file

diff -r d35b76a35dd4fb9e14a9816f48f3bf62d38598e7 -r 3d5af6f5d494c2428dd999d7947bc03a845dafab tests/tests_3.5.yaml
--- a/tests/tests_3.5.yaml
+++ b/tests/tests_3.5.yaml
@@ -25,6 +25,8 @@
 
   local_halos_350:
     - yt/frontends/owls_subfind/tests/test_outputs.py
+    - yt/frontends/gadget_fof/tests/test_outputs.py:test_fields_g5
+    - yt/frontends/gadget_fof/tests/test_outputs.py:test_fields_g42
   
   local_owls_350:
     - yt/frontends/owls/tests/test_outputs.py


https://bitbucket.org/yt_analysis/yt/commits/02e42b39f5de/
Changeset:   02e42b39f5de
Branch:      yt
User:        xarthisius
Date:        2016-03-31 01:03:09+00:00
Summary:     Ensure that mesh_render tests have unique names
Affected #:  3 files

diff -r 3d5af6f5d494c2428dd999d7947bc03a845dafab -r 02e42b39f5de3bd266e103eb7df7bbf0e390ad64 tests/tests_2.7.yaml
--- a/tests/tests_2.7.yaml
+++ b/tests/tests_2.7.yaml
@@ -42,7 +42,7 @@
   local_tipsy_270:
     - yt/frontends/tipsy/tests/test_outputs.py
   
-  local_varia_273:
+  local_varia_274:
     - yt/analysis_modules/radmc3d_export
     - yt/frontends/moab/tests/test_c5.py
     - yt/analysis_modules/photon_simulator/tests/test_spectra.py

diff -r 3d5af6f5d494c2428dd999d7947bc03a845dafab -r 02e42b39f5de3bd266e103eb7df7bbf0e390ad64 tests/tests_3.5.yaml
--- a/tests/tests_3.5.yaml
+++ b/tests/tests_3.5.yaml
@@ -42,7 +42,7 @@
   local_tipsy_350:
     - yt/frontends/tipsy/tests/test_outputs.py
   
-  local_varia_350:
+  local_varia_351:
     - yt/analysis_modules/radmc3d_export
     - yt/frontends/moab/tests/test_c5.py
     - yt/analysis_modules/photon_simulator/tests/test_spectra.py

diff -r 3d5af6f5d494c2428dd999d7947bc03a845dafab -r 02e42b39f5de3bd266e103eb7df7bbf0e390ad64 yt/visualization/volume_rendering/tests/test_mesh_render.py
--- a/yt/visualization/volume_rendering/tests/test_mesh_render.py
+++ b/yt/visualization/volume_rendering/tests/test_mesh_render.py
@@ -52,6 +52,7 @@
     def mesh_render_image_func(filename_prefix):
         return im.write_image(filename_prefix)
 
+    mesh_render_image_func.__name__ = "func_{}".format(test_prefix)
     test = GenericImageTest(ds, mesh_render_image_func, decimals)
     test.prefix = test_prefix
     return test

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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-svn-spacepope.org/attachments/20160331/298e8510/attachment.html>


More information about the yt-svn mailing list