[yt-svn] commit/yt: 2 new changesets

Bitbucket commits-noreply at bitbucket.org
Thu Nov 29 20:56:58 PST 2012


2 new commits in yt:


https://bitbucket.org/yt_analysis/yt/changeset/d6adb60cc148/
changeset:   d6adb60cc148
branch:      yt
user:        MatthewTurk
date:        2012-11-30 00:58:38
summary:     Adding Stream items to yt.mods and also fixing slices for the Stream handler.
affected #:  2 files

diff -r 17ae6611e6b07714e812d2e2be6b5954927be1fe -r d6adb60cc148aa927d92e3d1fe93cb3bca88bb65 yt/frontends/stream/io.py
--- a/yt/frontends/stream/io.py
+++ b/yt/frontends/stream/io.py
@@ -60,8 +60,8 @@
     def _read_data_slice(self, grid, field, axis, coord):
         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)
+        sl = tuple(sl)
+        tr = self.fields[grid.id][field][sl]
         # In-place unit conversion requires we return a copy
         return tr.copy()
 


diff -r 17ae6611e6b07714e812d2e2be6b5954927be1fe -r d6adb60cc148aa927d92e3d1fe93cb3bca88bb65 yt/mods.py
--- a/yt/mods.py
+++ b/yt/mods.py
@@ -105,6 +105,10 @@
 #from yt.frontends.maestro.api import \
 #    MaestroStaticOutput, MaestroFieldInfo, add_maestro_field
 
+from yt.frontends.stream.api import \
+    StreamStaticOutput, StreamFieldInfo, add_stream_field, \
+    StreamHandler, load_uniform_grid, load_amr_grids
+
 from yt.analysis_modules.list_modules import \
     get_available_modules, amods
 available_analysis_modules = get_available_modules()



https://bitbucket.org/yt_analysis/yt/changeset/e48ea3fd0507/
changeset:   e48ea3fd0507
branch:      yt
user:        jzuhone
date:        2012-11-30 05:56:57
summary:     Merged in MatthewTurk/yt (pull request #357)
affected #:  2 files

diff -r c7f2e2f38932ff786dcd2be9326dbfb385f44de9 -r e48ea3fd050760cc778fd19a73f2f2580bc8fb8c yt/frontends/stream/io.py
--- a/yt/frontends/stream/io.py
+++ b/yt/frontends/stream/io.py
@@ -60,8 +60,8 @@
     def _read_data_slice(self, grid, field, axis, coord):
         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)
+        sl = tuple(sl)
+        tr = self.fields[grid.id][field][sl]
         # In-place unit conversion requires we return a copy
         return tr.copy()
 


diff -r c7f2e2f38932ff786dcd2be9326dbfb385f44de9 -r e48ea3fd050760cc778fd19a73f2f2580bc8fb8c yt/mods.py
--- a/yt/mods.py
+++ b/yt/mods.py
@@ -105,6 +105,10 @@
 #from yt.frontends.maestro.api import \
 #    MaestroStaticOutput, MaestroFieldInfo, add_maestro_field
 
+from yt.frontends.stream.api import \
+    StreamStaticOutput, StreamFieldInfo, add_stream_field, \
+    StreamHandler, load_uniform_grid, load_amr_grids
+
 from yt.analysis_modules.list_modules import \
     get_available_modules, amods
 available_analysis_modules = get_available_modules()

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