[yt-svn] commit/yt-3.0: MatthewTurk: Fixing NMSU-ART root level and a bug in initializer of IOHandler.
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Fri Oct 18 15:18:46 PDT 2013
1 new commit in yt-3.0:
https://bitbucket.org/yt_analysis/yt-3.0/commits/09fcbdcc5ae8/
Changeset: 09fcbdcc5ae8
Branch: yt-3.0
User: MatthewTurk
Date: 2013-10-19 00:18:29
Summary: Fixing NMSU-ART root level and a bug in initializer of IOHandler.
Affected #: 2 files
diff -r 29e24eb0f722d4e4d907b58ed1398eee652a8bdf -r 09fcbdcc5ae8b38bc37a5a95901d936303497086 yt/frontends/art/data_structures.py
--- a/yt/frontends/art/data_structures.py
+++ b/yt/frontends/art/data_structures.py
@@ -459,8 +459,9 @@
for j in range(2):
for k in range(2):
ii = ((k*2)+j)*2+i
+ # Note: C order because our index converts C to F.
source[field][:,ii] = \
- dt[i::2,j::2,k::2].ravel(order="F")
+ dt[i::2,j::2,k::2].ravel(order="C")
oct_handler.fill_level(0, levels, cell_inds, file_inds, tr, source)
del source
# Now we continue with the additional levels.
diff -r 29e24eb0f722d4e4d907b58ed1398eee652a8bdf -r 09fcbdcc5ae8b38bc37a5a95901d936303497086 yt/frontends/art/io.py
--- a/yt/frontends/art/io.py
+++ b/yt/frontends/art/io.py
@@ -36,10 +36,10 @@
masks = None
caching = True
- def __init__(self):
+ def __init__(self, *args, **kwargs):
self.cache = {}
self.masks = {}
- super(IOHandlerART, self).__init__()
+ super(IOHandlerART, self).__init__(*args, **kwargs)
def _read_fluid_selection(self, chunks, selector, fields, size):
# Chunks in this case will have affiliated domain subset objects
Repository URL: https://bitbucket.org/yt_analysis/yt-3.0/
--
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