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

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Thu Nov 20 17:49:28 PST 2014


2 new commits in yt:

https://bitbucket.org/yt_analysis/yt/commits/3dae609ca9b7/
Changeset:   3dae609ca9b7
Branch:      yt
User:        brittonsmith
Date:        2014-11-10 13:51:34+00:00
Summary:     Decreasing tolerances on rockstar tests so they can actually pass.
Affected #:  2 files

diff -r 9153a5a32dce19164cc66f8073a26d460aa74cbe -r 3dae609ca9b74bd019659a8add755bd74bea359f yt/analysis_modules/halo_analysis/tests/test_halo_finders.py
--- a/yt/analysis_modules/halo_analysis/tests/test_halo_finders.py
+++ b/yt/analysis_modules/halo_analysis/tests/test_halo_finders.py
@@ -15,6 +15,7 @@
            ("halos", "particle_mass"))
 
 methods = {"fof": 2, "hop": 2, "rockstar": 3}
+decimals = {"fof": 10, "hop": 10, "rockstar": 1}
 
 e64 = "Enzo_64/DD0043/data0043"
 @requires_ds(e64, big_data=True)
@@ -28,9 +29,10 @@
                                    maxprocs=methods[method])
         comm.Disconnect()
 
-    fn = os.path.join(os.path.dirname(__file__),
-                      "halo_catalogs", method,
-                      "%s.0.h5" % method)
-    ds = load(fn)
-    for field in _fields:
-        yield FieldValuesTest(ds, field, particle_type=True)
+        fn = os.path.join(os.path.dirname(__file__),
+                          "halo_catalogs", method,
+                          "%s.0.h5" % method)
+        ds = load(fn)
+        for field in _fields:
+            yield FieldValuesTest(ds, field, particle_type=True,
+                                  decimals=decimals[method])

diff -r 9153a5a32dce19164cc66f8073a26d460aa74cbe -r 3dae609ca9b74bd019659a8add755bd74bea359f yt/analysis_modules/halo_finding/tests/test_rockstar.py
--- a/yt/analysis_modules/halo_finding/tests/test_rockstar.py
+++ b/yt/analysis_modules/halo_finding/tests/test_rockstar.py
@@ -25,8 +25,8 @@
     h1 = "rockstar_halos/halos_0.0.bin"
     d1 = load(h1)
     for field in _fields:
-        yield FieldValuesTest(d1, field, particle_type=True)
+        yield FieldValuesTest(d1, field, particle_type=True, decimals=1)
     h2 = "rockstar_halos/halos_1.0.bin"
     d2 = load(h2)
     for field in _fields:
-        yield FieldValuesTest(d2, field, particle_type=True)
+        yield FieldValuesTest(d2, field, particle_type=True, decimals=1)


https://bitbucket.org/yt_analysis/yt/commits/1c1f9efebc9a/
Changeset:   1c1f9efebc9a
Branch:      yt
User:        ngoldbaum
Date:        2014-11-21 01:49:20+00:00
Summary:     Merged in brittonsmith/yt (pull request #1301)

[BUGFIX] Decreasing tolerances on rockstar tests so they can actually pass.
Affected #:  2 files

diff -r f62866381f4bb25ea471487c1af301c075179e00 -r 1c1f9efebc9a743122f81eaf1e6f12dadad7a87c yt/analysis_modules/halo_analysis/tests/test_halo_finders.py
--- a/yt/analysis_modules/halo_analysis/tests/test_halo_finders.py
+++ b/yt/analysis_modules/halo_analysis/tests/test_halo_finders.py
@@ -15,6 +15,7 @@
            ("halos", "particle_mass"))
 
 methods = {"fof": 2, "hop": 2, "rockstar": 3}
+decimals = {"fof": 10, "hop": 10, "rockstar": 1}
 
 e64 = "Enzo_64/DD0043/data0043"
 @requires_ds(e64, big_data=True)
@@ -28,9 +29,10 @@
                                    maxprocs=methods[method])
         comm.Disconnect()
 
-    fn = os.path.join(os.path.dirname(__file__),
-                      "halo_catalogs", method,
-                      "%s.0.h5" % method)
-    ds = load(fn)
-    for field in _fields:
-        yield FieldValuesTest(ds, field, particle_type=True)
+        fn = os.path.join(os.path.dirname(__file__),
+                          "halo_catalogs", method,
+                          "%s.0.h5" % method)
+        ds = load(fn)
+        for field in _fields:
+            yield FieldValuesTest(ds, field, particle_type=True,
+                                  decimals=decimals[method])

diff -r f62866381f4bb25ea471487c1af301c075179e00 -r 1c1f9efebc9a743122f81eaf1e6f12dadad7a87c yt/analysis_modules/halo_finding/tests/test_rockstar.py
--- a/yt/analysis_modules/halo_finding/tests/test_rockstar.py
+++ b/yt/analysis_modules/halo_finding/tests/test_rockstar.py
@@ -25,8 +25,8 @@
     h1 = "rockstar_halos/halos_0.0.bin"
     d1 = load(h1)
     for field in _fields:
-        yield FieldValuesTest(d1, field, particle_type=True)
+        yield FieldValuesTest(d1, field, particle_type=True, decimals=1)
     h2 = "rockstar_halos/halos_1.0.bin"
     d2 = load(h2)
     for field in _fields:
-        yield FieldValuesTest(d2, field, particle_type=True)
+        yield FieldValuesTest(d2, field, particle_type=True, decimals=1)

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