[yt-svn] commit/yt: ngoldbaum: Merged in atmyers/yt-fixes/yt-3.0 (pull request #938)
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Tue Jun 10 10:38:51 PDT 2014
1 new commit in yt:
https://bitbucket.org/yt_analysis/yt/commits/a83501174991/
Changeset: a83501174991
Branch: yt-3.0
User: ngoldbaum
Date: 2014-06-10 19:38:43
Summary: Merged in atmyers/yt-fixes/yt-3.0 (pull request #938)
Fixing two bugs in the Chombo frontend
Affected #: 2 files
diff -r 968ecd473b98ac9e38514f844d013ffb46881f92 -r a83501174991ae2fae2b7a4aa4f9234296976cf3 yt/frontends/chombo/data_structures.py
--- a/yt/frontends/chombo/data_structures.py
+++ b/yt/frontends/chombo/data_structures.py
@@ -162,7 +162,7 @@
def _parse_index(self):
f = self._handle # shortcut
- self.max_level = f.attrs['max_level']
+ self.max_level = f.attrs['num_levels'] - 1
grids = []
self.dds_list = []
diff -r 968ecd473b98ac9e38514f844d013ffb46881f92 -r a83501174991ae2fae2b7a4aa4f9234296976cf3 yt/frontends/chombo/io.py
--- a/yt/frontends/chombo/io.py
+++ b/yt/frontends/chombo/io.py
@@ -171,7 +171,7 @@
return np.array([], dtype=np.float64)
data = self._handle[lev]['particles:data'][offsets[lo]:offsets[hi]]
- return data[field_index::items_per_particle]
+ return np.asarray(data[field_index::items_per_particle], dtype=np.float64, order='F')
class IOHandlerChombo2DHDF5(IOHandlerChomboHDF5):
_dataset_type = "chombo2d_hdf5"
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