[yt-svn] commit/yt: MatthewTurk: Allowing units to override known_particle_fields.
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Tue Mar 25 16:31:07 PDT 2014
1 new commit in yt:
https://bitbucket.org/yt_analysis/yt/commits/94fb98836a21/
Changeset: 94fb98836a21
Branch: yt-3.0
User: MatthewTurk
Date: 2014-03-26 00:29:39
Summary: Allowing units to override known_particle_fields.
Affected #: 1 file
diff -r 2ebc6b35e95478f5189f8953f8a9cc0155a43274 -r 94fb98836a21f22f91e4d5524f2f0212e5caf161 yt/fields/field_info_container.py
--- a/yt/fields/field_info_container.py
+++ b/yt/fields/field_info_container.py
@@ -68,6 +68,7 @@
def setup_particle_fields(self, ptype):
for f, (units, aliases, dn) in sorted(self.known_particle_fields):
+ units = self.pf.field_units.get((ptype, f), units)
self.add_output_field((ptype, f),
units = units, particle_type = True, display_name = dn)
if (ptype, f) not in self.field_list:
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