[Yt-svn] commit/yt: 3 new changesets
Bitbucket
commits-noreply at bitbucket.org
Mon Aug 15 10:27:59 PDT 2011
3 new changesets in yt:
http://bitbucket.org/yt_analysis/yt/changeset/9af0e33e5bc5/
changeset: 9af0e33e5bc5
branch: yt
user: MatthewTurk
date: 2011-08-15 16:40:30
summary: Removed a negation.
affected #: 1 file (4 bytes)
--- a/yt/data_objects/data_containers.py Mon Aug 15 08:58:37 2011 -0400
+++ b/yt/data_objects/data_containers.py Mon Aug 15 10:40:30 2011 -0400
@@ -1614,7 +1614,7 @@
dxs.append(na.ones(nvals.shape[0], dtype='float64') * ds)
coord_data = na.concatenate(coord_data, axis=0).transpose()
field_data = na.concatenate(field_data, axis=0).transpose()
- if self._weight is not None:
+ if self._weight is None:
dls, convs = self._get_dls(self._grids[0], fields)
# We always get one extra for the weighting field
field_data *= convs[:-1]
http://bitbucket.org/yt_analysis/yt/changeset/5cdbf7701446/
changeset: 5cdbf7701446
branch: yt
user: MatthewTurk
date: 2011-08-15 19:07:34
summary: Dummy merge
affected #: 1 file (0 bytes)
http://bitbucket.org/yt_analysis/yt/changeset/3ad398cc09c4/
changeset: 3ad398cc09c4
branch: yt
user: MatthewTurk
date: 2011-08-15 19:27:25
summary: Adding more projection tests, fixing exception raising
affected #: 3 files (204 bytes)
--- a/tests/projections.py Mon Aug 15 13:07:34 2011 -0400
+++ b/tests/projections.py Mon Aug 15 13:27:25 2011 -0400
@@ -8,9 +8,9 @@
for field in field_list:
create_test(TestProjection, "projection_test_%s_%s" % (axis, field),
field = field, axis = axis)
+ create_test(TestProjection, "projection_test_%s_%s_Density" % (axis, field),
+ field = field, axis = axis, weight_field = "Density")
for field in field_list:
create_test(TestGasDistribution, "profile_density_test_%s" % field,
field_x = "Density", field_y = field)
-
-
--- a/yt/utilities/answer_testing/hydro_tests.py Mon Aug 15 13:07:34 2011 -0400
+++ b/yt/utilities/answer_testing/hydro_tests.py Mon Aug 15 13:27:25 2011 -0400
@@ -32,6 +32,7 @@
field = None
axis = None
+ weight_field = None
def run(self):
# First we get our flattened projection -- this is the
--- a/yt/utilities/answer_testing/runner.py Mon Aug 15 13:07:34 2011 -0400
+++ b/yt/utilities/answer_testing/runner.py Mon Aug 15 13:27:25 2011 -0400
@@ -144,7 +144,7 @@
try:
old_result = self.old_results[test.name]
except FileNotExistException:
- return (False, "File %s does not exist." % test.name)
+ return (False, sys.exc_info())
try:
test.compare(old_result)
except RegressionTestException, exc:
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