[yt-svn] commit/yt: ngoldbaum: Merged in xarthisius/yt (pull request #2427)
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Thu Oct 27 19:04:27 PDT 2016
1 new commit in yt:
https://bitbucket.org/yt_analysis/yt/commits/731b1341458d/
Changeset: 731b1341458d
Branch: yt
User: ngoldbaum
Date: 2016-10-28 02:04:01+00:00
Summary: Merged in xarthisius/yt (pull request #2427)
Use slighlty smaller objects for certain tests
Affected #: 2 files
diff -r 6b0692dca9476c8f08c1d2abffb2412961d5b269 -r 731b1341458da6b10ebd33335f886a29a8dda82b yt/fields/tests/test_fields.py
--- a/yt/fields/tests/test_fields.py
+++ b/yt/fields/tests/test_fields.py
@@ -197,9 +197,9 @@
ds = load('GadgetDiskGalaxy/snapshot_200.hdf5')
fn = ds.add_smoothed_particle_field(('PartType0', 'particle_ones'))
assert_equal(fn, ('deposit', 'PartType0_smoothed_particle_ones'))
- ad = ds.all_data()
- ret = ad[fn]
- assert_almost_equal(ret.sum(), 3824750.912653606)
+ dd = ds.sphere('center', (500, 'code_length'))
+ ret = dd[fn]
+ assert_almost_equal(ret.sum(), 638.5652315154682)
def test_add_gradient_fields():
ds = get_base_ds(1)
diff -r 6b0692dca9476c8f08c1d2abffb2412961d5b269 -r 731b1341458da6b10ebd33335f886a29a8dda82b yt/units/tests/test_unit_systems.py
--- a/yt/units/tests/test_unit_systems.py
+++ b/yt/units/tests/test_unit_systems.py
@@ -63,11 +63,11 @@
ytcfg["yt","skip_dataset_cache"] = "True"
ds_cgs = load(gslr)
- dd_cgs = ds_cgs.sphere("c", (100., "kpc"))
+ dd_cgs = ds_cgs.sphere("c", (15., "kpc"))
for us in test_units:
ds = load(gslr, unit_system=us)
- dd = ds.sphere("c", (100.,"kpc"))
+ dd = ds.sphere("c", (15.,"kpc"))
for field in test_fields:
if us == "code":
# For this dataset code units are cgs
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