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

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Wed Mar 27 07:15:55 PDT 2013


2 new commits in yt-3.0:

https://bitbucket.org/yt_analysis/yt-3.0/commits/9bc9be139905/
Changeset:   9bc9be139905
Branch:      yt-3.0
User:        xarthisius
Date:        2013-03-27 15:08:55
Summary:     This changes another assert_equal in field unit conversion tests to allow 4 nulp
Affected #:  1 file

diff -r 6cf22697b73c1490164684de693252380b7c2d18 -r 9bc9be139905a5d03dfeae915661d992671c8310 yt/data_objects/tests/test_fields.py
--- a/yt/data_objects/tests/test_fields.py
+++ b/yt/data_objects/tests/test_fields.py
@@ -81,7 +81,7 @@
                 v1 = g[self.field_name]
                 g.clear_data()
                 g.field_parameters.update(_sample_parameters)
-                assert_equal(v1, conv*field._function(field, g))
+                assert_equal_almost_equal_nulp(v1, conv*field._function(field, g), 4)
 
 def test_all_fields():
     for field in FieldInfo:


https://bitbucket.org/yt_analysis/yt-3.0/commits/6c9860ffd783/
Changeset:   6c9860ffd783
Branch:      yt-3.0
User:        xarthisius
Date:        2013-03-27 15:12:42
Summary:     Fix typo in previous changeset
Affected #:  1 file

diff -r 9bc9be139905a5d03dfeae915661d992671c8310 -r 6c9860ffd783d43ff12fcd50c370309795eb2be2 yt/data_objects/tests/test_fields.py
--- a/yt/data_objects/tests/test_fields.py
+++ b/yt/data_objects/tests/test_fields.py
@@ -81,7 +81,7 @@
                 v1 = g[self.field_name]
                 g.clear_data()
                 g.field_parameters.update(_sample_parameters)
-                assert_equal_almost_equal_nulp(v1, conv*field._function(field, g), 4)
+                assert_array_almost_equal_nulp(v1, conv*field._function(field, g), 4)
 
 def test_all_fields():
     for field in FieldInfo:

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