[yt-svn] commit/yt: 2 new changesets
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Fri Jan 10 08:37:27 PST 2014
2 new commits in yt:
https://bitbucket.org/yt_analysis/yt/commits/76cab14f5438/
Changeset: 76cab14f5438
Branch: yt-3.0
User: MatthewTurk
Date: 2014-01-09 19:57:55
Summary: Fixing IO for Active Particle datasets from Enzo
Affected #: 1 file
diff -r 2b00cf20ca0ee8d35af3845c9eb36a6ad8493333 -r 76cab14f54388064576ae7cc08c249be9a0706e3 yt/frontends/enzo/io.py
--- a/yt/frontends/enzo/io.py
+++ b/yt/frontends/enzo/io.py
@@ -39,12 +39,13 @@
f = h5py.File(grid.filename, "r")
group = f["/Grid%08i" % grid.id]
fields = []
+ add_io = "io" in grid.pf.particle_types
for name, v in group.iteritems():
# NOTE: This won't work with 1D datasets.
if not hasattr(v, "shape"):
continue
elif len(v.dims) == 1:
- fields.append( ("io", str(name)) )
+ if add_io: fields.append( ("io", str(name)) )
else:
fields.append( ("gas", str(name)) )
f.close()
https://bitbucket.org/yt_analysis/yt/commits/e36747eede95/
Changeset: e36747eede95
Branch: yt-3.0
User: MatthewTurk
Date: 2014-01-10 17:37:09
Summary: Merging
Affected #: 1 file
diff -r d5cca31212f24b464e89554730af34d462225165 -r e36747eede95c5d99764191d2b5c937852861dce yt/frontends/enzo/io.py
--- a/yt/frontends/enzo/io.py
+++ b/yt/frontends/enzo/io.py
@@ -39,12 +39,13 @@
f = h5py.File(grid.filename, "r")
group = f["/Grid%08i" % grid.id]
fields = []
+ add_io = "io" in grid.pf.particle_types
for name, v in group.iteritems():
# NOTE: This won't work with 1D datasets.
if not hasattr(v, "shape"):
continue
elif len(v.dims) == 1:
- fields.append( ("io", str(name)) )
+ if add_io: fields.append( ("io", str(name)) )
else:
fields.append( ("gas", str(name)) )
f.close()
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