[yt-svn] commit/yt: 2 new changesets
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Wed Jan 11 11:36:05 PST 2017
2 new commits in yt:
https://bitbucket.org/yt_analysis/yt/commits/eee81fe1bc85/
Changeset: eee81fe1bc85
Branch: yt
User: xarthisius
Date: 2017-01-11 15:08:42+00:00
Summary: Bounds check should only apply to spatial dimensions. Fixes #1310
Affected #: 1 file
diff -r eb89d13ffb42b93b146a2deff9e1ad24d90feb75 -r eee81fe1bc85ce8a8b22612e70ab88c9b6896f29 yt/geometry/particle_deposit.pyx
--- a/yt/geometry/particle_deposit.pyx
+++ b/yt/geometry/particle_deposit.pyx
@@ -329,11 +329,11 @@
cdef np.float64_t[:,:,:,:] field
cdef public object ofield
def initialize(self):
- if not all(_ > 1 for _ in self.nvals):
+ if not all(_ > 1 for _ in self.nvals[:-1]):
from yt.utilities.exceptions import YTBoundsDefinitionError
raise YTBoundsDefinitionError(
"CIC requires minimum of 2 zones in all dimensions",
- self.nvals)
+ self.nvals[:-1])
self.field = append_axes(
np.zeros(self.nvals, dtype="float64", order='F'), 4)
https://bitbucket.org/yt_analysis/yt/commits/003a2e024c30/
Changeset: 003a2e024c30
Branch: yt
User: xarthisius
Date: 2017-01-11 19:34:27+00:00
Summary: Make the error message more verbose about the kind of dimensions that matter
Affected #: 1 file
diff -r eee81fe1bc85ce8a8b22612e70ab88c9b6896f29 -r 003a2e024c30e293af9fdd58419bf0d777e41afc yt/geometry/particle_deposit.pyx
--- a/yt/geometry/particle_deposit.pyx
+++ b/yt/geometry/particle_deposit.pyx
@@ -332,7 +332,7 @@
if not all(_ > 1 for _ in self.nvals[:-1]):
from yt.utilities.exceptions import YTBoundsDefinitionError
raise YTBoundsDefinitionError(
- "CIC requires minimum of 2 zones in all dimensions",
+ "CIC requires minimum of 2 zones in all spatial dimensions",
self.nvals[:-1])
self.field = append_axes(
np.zeros(self.nvals, dtype="float64", order='F'), 4)
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