[yt-svn] commit/yt: MatthewTurk: Swap out get_smallest_dx for 8192. Should fix the buildbot.
Bitbucket
commits-noreply at bitbucket.org
Wed Oct 24 12:58:44 PDT 2012
1 new commit in yt:
https://bitbucket.org/yt_analysis/yt/changeset/6794b2798b5a/
changeset: 6794b2798b5a
branch: yt
user: MatthewTurk
date: 2012-10-24 21:58:34
summary: Swap out get_smallest_dx for 8192. Should fix the buildbot.
affected #: 1 file
diff -r 81d3dd529a1d278f5f3434c4e15d8336063dd0b6 -r 6794b2798b5a9c46cc505bd0d7cd271e65c82f0c yt/data_objects/tests/test_boolean_regions.py
--- a/yt/data_objects/tests/test_boolean_regions.py
+++ b/yt/data_objects/tests/test_boolean_regions.py
@@ -6,13 +6,14 @@
ytcfg["yt","__withintesting"] = "True"
def _ID(field, data):
width = data.pf.domain_right_edge - data.pf.domain_left_edge
- delta = width / data.pf.h.get_smallest_dx()
- x = data['x'] - data.pf.h.get_smallest_dx() / 2.
- y = data['y'] - data.pf.h.get_smallest_dx() / 2.
- z = data['z'] - data.pf.h.get_smallest_dx() / 2.
- xi = x / data.pf.h.get_smallest_dx()
- yi = y / data.pf.h.get_smallest_dx()
- zi = z / data.pf.h.get_smallest_dx()
+ min_dx = 1.0/8192
+ delta = width / min_dx
+ x = data['x'] - min_dx / 2.
+ y = data['y'] - min_dx / 2.
+ z = data['z'] - min_dx / 2.
+ xi = x / min_dx
+ yi = y / min_dx
+ zi = z / min_dx
index = xi + delta[0] * (yi + delta[1] * zi)
index = index.astype('int64')
return index
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