[yt-svn] commit/yt: xarthisius: Fix slice initialization for stream frontend
Bitbucket
commits-noreply at bitbucket.org
Fri Jan 27 06:03:40 PST 2012
1 new commit in yt:
https://bitbucket.org/yt_analysis/yt/changeset/2acb5d098b5b/
changeset: 2acb5d098b5b
branch: yt
user: xarthisius
date: 2012-01-27 06:04:07
summary: Fix slice initialization for stream frontend
affected #: 1 file
diff -r f0450f016f159c4463c8b31b20a198dee4aa709c -r 2acb5d098b5b48937c9e5e7cc80e38254e23fdb7 yt/frontends/stream/io.py
--- a/yt/frontends/stream/io.py
+++ b/yt/frontends/stream/io.py
@@ -58,7 +58,7 @@
return self.fields[grid.id].keys()
def _read_data_slice(self, grid, field, axis, coord):
- sl = [slice(0,-0), slice(0,-0), slice(0,-0)]
+ sl = [slice(None), slice(None), slice(None)]
sl[axis] = slice(coord, coord + 1)
sl = tuple(reversed(sl))
tr = self.fields[grid.id][field][sl].swapaxes(0,2)
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