[yt-svn] commit/yt: MatthewTurk: Bug fix for field shape checking
Bitbucket
commits-noreply at bitbucket.org
Tue Jun 12 10:16:28 PDT 2012
1 new commit in yt:
https://bitbucket.org/yt_analysis/yt/changeset/8724d129023e/
changeset: 8724d129023e
branch: yt
user: MatthewTurk
date: 2012-06-12 19:16:15
summary: Bug fix for field shape checking
affected #: 1 file
diff -r b3d0215359c7b3411ec5b9b8bc169c162034a112 -r 8724d129023e14aa982916876f2540ffec73d5c1 yt/frontends/enzo/io.py
--- a/yt/frontends/enzo/io.py
+++ b/yt/frontends/enzo/io.py
@@ -201,7 +201,7 @@
_data_style = "enzo_packed_3d_gz"
def modify(self, field):
- if len(tr.shape) < 3:
+ if len(field.shape) < 3:
return field
tr = field[3:-3,3:-3,3:-3].swapaxes(0,2)
return tr.copy() # To ensure contiguous
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