[yt-svn] commit/yt: sskory: Adding "particle_type=True" for FLASH particle fields.

Bitbucket commits-noreply at bitbucket.org
Thu Jan 19 09:33:51 PST 2012


1 new commit in yt:


https://bitbucket.org/yt_analysis/yt/changeset/2337174bb3f6/
changeset:   2337174bb3f6
branch:      yt
user:        sskory
date:        2012-01-19 18:26:36
summary:     Adding "particle_type=True" for FLASH particle fields.
affected #:  1 file

diff -r 9771db4d7ad37466515ce01cf0bc340d84cec4f9 -r 2337174bb3f6864eca51dcf7c0a8469e99eb6f14 yt/frontends/flash/fields.py
--- a/yt/frontends/flash/fields.py
+++ b/yt/frontends/flash/fields.py
@@ -123,27 +123,28 @@
                 units=r"\rm{erg}/\rm{g}")
 add_flash_field("particle_posx", function=NullFunc, take_log=False,
                 convert_function=_get_convert("particle_posx"),
-                units=r"\rm{cm}")
+                units=r"\rm{cm}", particle_type=True)
 add_flash_field("particle_posy", function=NullFunc, take_log=False,
                 convert_function=_get_convert("particle_posy"),
-                units=r"\rm{cm}")
+                units=r"\rm{cm}", particle_type=True)
 add_flash_field("particle_posz", function=NullFunc, take_log=False,
                 convert_function=_get_convert("particle_posz"),
-                units=r"\rm{cm}")
+                units=r"\rm{cm}", particle_type=True)
 add_flash_field("particle_velx", function=NullFunc, take_log=False,
                 convert_function=_get_convert("particle_velx"),
-                units=r"\rm{cm}/\rm{s}")
+                units=r"\rm{cm}/\rm{s}", particle_type=True)
 add_flash_field("particle_vely", function=NullFunc, take_log=False,
                 convert_function=_get_convert("particle_vely"),
-                units=r"\rm{cm}/\rm{s}")
+                units=r"\rm{cm}/\rm{s}", particle_type=True)
 add_flash_field("particle_velz", function=NullFunc, take_log=False,
                 convert_function=_get_convert("particle_velz"),
-                units=r"\rm{cm}/\rm{s}")
+                units=r"\rm{cm}/\rm{s}", particle_type=True)
 add_flash_field("particle_tag", function=NullFunc, take_log=False,
-                convert_function=_get_convert("particle_tag"))
+                convert_function=_get_convert("particle_tag"),
+                particle_type=True)
 add_flash_field("particle_mass", function=NullFunc, take_log=False,
                 convert_function=_get_convert("particle_mass"),
-                units=r"\rm{g}")
+                units=r"\rm{g}", particle_type=True)
 add_flash_field("temp", function=NullFunc, take_log=True,
                 convert_function=_get_convert("temp"),
                 units=r"\rm{K}")

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