[yt-svn] commit/yt: 2 new changesets
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Fri Jan 19 09:29:38 PST 2018
2 new commits in yt:
https://bitbucket.org/yt_analysis/yt/commits/0c37479adfc8/
Changeset: 0c37479adfc8
User: ngoldbaum
Date: 2018-01-11 19:55:42+00:00
Summary: support active particle fields that map to arrays
Affected #: 1 file
diff -r bcd6d24d0a4fd33e60a5d3bef5d4538ca2383317 -r 0c37479adfc800b1dac3c46e87344b582e6088bd yt/frontends/enzo/data_structures.py
--- a/yt/frontends/enzo/data_structures.py
+++ b/yt/frontends/enzo/data_structures.py
@@ -384,6 +384,9 @@
if ptype not in _fields: continue
for field in (str(f) for f in node[ptype]):
_fields[ptype].append(field)
+ sh = node[ptype][field].shape
+ if len(sh) > 1:
+ self.io._array_fields[field] = (sh[1], )
fields += [(ptype, field) for field in _fields.pop(ptype)]
handle.close()
return set(fields)
https://bitbucket.org/yt_analysis/yt/commits/1421ce71a149/
Changeset: 1421ce71a149
User: MatthewTurk
Date: 2018-01-19 17:29:22+00:00
Summary: Merge pull request #1665 from ngoldbaum/ap-array-fields
support active particle fields that map to arrays
Affected #: 1 file
diff -r 206bbd4f69d6986982c1797aeda441ff57c25a04 -r 1421ce71a149255f8179332369c3d5a4abe4dd7c yt/frontends/enzo/data_structures.py
--- a/yt/frontends/enzo/data_structures.py
+++ b/yt/frontends/enzo/data_structures.py
@@ -384,6 +384,9 @@
if ptype not in _fields: continue
for field in (str(f) for f in node[ptype]):
_fields[ptype].append(field)
+ sh = node[ptype][field].shape
+ if len(sh) > 1:
+ self.io._array_fields[field] = (sh[1], )
fields += [(ptype, field) for field in _fields.pop(ptype)]
handle.close()
return set(fields)
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