[yt-svn] commit/yt: jzuhone: Some of the items in the translation dict were not getting flagged
Bitbucket
commits-noreply at bitbucket.org
Fri Feb 10 06:02:00 PST 2012
1 new commit in yt:
https://bitbucket.org/yt_analysis/yt/changeset/3cb64c09895e/
changeset: 3cb64c09895e
branch: yt
user: jzuhone
date: 2012-02-09 23:39:11
summary: Some of the items in the translation dict were not getting flagged
as particle fields
affected #: 1 file
diff -r 5e8b509c62210e111e0e2897c957340b66b262dd -r 3cb64c09895e4098d51f5072cf1d3fb7122ebb5a yt/frontends/flash/fields.py
--- a/yt/frontends/flash/fields.py
+++ b/yt/frontends/flash/fields.py
@@ -199,9 +199,11 @@
else :
dname = f
ff = KnownFLASHFields[v]
+ pfield = f.startswith("particle")
add_field(f, TranslationFunc(v),
take_log=KnownFLASHFields[v].take_log,
- units = ff._units, display_name=dname)
+ units = ff._units, display_name=dname,
+ particle_type = pfield)
def _convertParticleMassMsun(data):
return 1.0/1.989e33
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