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

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Tue Mar 19 14:41:19 PDT 2013


2 new commits in yt-3.0:

https://bitbucket.org/yt_analysis/yt-3.0/commits/5067013852c7/
changeset:   5067013852c7
branch:      yt-3.0
user:        MatthewTurk
date:        2013-03-19 22:33:54
summary:     This changes assert_equal in field unit conversion tests to allow 4 nulp.
affected #:  1 file

diff -r ac8bc6a9120690f7e8223fa1bc7f32c9eced7805 -r 5067013852c78606067c982e8d8c8d22692d0881 yt/data_objects/tests/test_fields.py
--- a/yt/data_objects/tests/test_fields.py
+++ b/yt/data_objects/tests/test_fields.py
@@ -72,7 +72,7 @@
         if not field.particle_type:
             assert_equal(v1, dd1["gas", self.field_name])
         if not needs_spatial:
-            assert_equal(v1, conv*field._function(field, dd2))
+            assert_almost_equal_nulp(v1, conv*field._function(field, dd2), 4)
         if not skip_grids:
             for g in pf.h.grids:
                 g.field_parameters.update(_sample_parameters)


https://bitbucket.org/yt_analysis/yt-3.0/commits/0776521341cd/
changeset:   0776521341cd
branch:      yt-3.0
user:        MatthewTurk
date:        2013-03-19 22:41:16
summary:     Merged in MatthewTurk/yt-3.0 (pull request #24)

This changes assert_equal in field unit conversion tests to allow 4 nulp.
affected #:  1 file

diff -r cc46e0009c84f96b6a3f85836b97a06a9eabd846 -r 0776521341cd4c318e942af0cd69f47d69341739 yt/data_objects/tests/test_fields.py
--- a/yt/data_objects/tests/test_fields.py
+++ b/yt/data_objects/tests/test_fields.py
@@ -72,7 +72,7 @@
         if not field.particle_type:
             assert_equal(v1, dd1["gas", self.field_name])
         if not needs_spatial:
-            assert_equal(v1, conv*field._function(field, dd2))
+            assert_almost_equal_nulp(v1, conv*field._function(field, dd2), 4)
         if not skip_grids:
             for g in pf.h.grids:
                 g.field_parameters.update(_sample_parameters)

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

--

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