[yt-svn] commit/yt: chummels: Enabling gadget frontend to alias temperature field to Temperature field as is done in gizmo
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Sun Dec 4 09:02:28 PST 2016
1 new commit in yt:
https://bitbucket.org/yt_analysis/yt/commits/49a03a144a96/
Changeset: 49a03a144a96
Branch: yt
User: chummels
Date: 2016-12-04 06:54:39+00:00
Summary: Enabling gadget frontend to alias temperature field to Temperature field as is done in gizmo
Affected #: 2 files
diff -r bb7f23a27456bed189cbd20b0b5cdc968a2f31e0 -r 49a03a144a9648a461207eb0942534f6762bea72 yt/frontends/gadget/fields.py
--- a/yt/frontends/gadget/fields.py
+++ b/yt/frontends/gadget/fields.py
@@ -93,6 +93,7 @@
sampling_type="particle",
function=_temperature,
units=self.ds.unit_system["temperature"])
+ self.alias((ptype, 'temperature'), (ptype, 'Temperature'))
# For now, we hardcode num_neighbors. We should make this configurable
# in the future.
diff -r bb7f23a27456bed189cbd20b0b5cdc968a2f31e0 -r 49a03a144a9648a461207eb0942534f6762bea72 yt/frontends/gizmo/fields.py
--- a/yt/frontends/gizmo/fields.py
+++ b/yt/frontends/gizmo/fields.py
@@ -75,7 +75,6 @@
def setup_gas_particle_fields(self, ptype):
super(GizmoFieldInfo, self).setup_gas_particle_fields(ptype)
- self.alias((ptype, "temperature"), (ptype, "Temperature"))
def _h_density(field, data):
x_H = 1.0 - data[(ptype, "He_metallicity")] - \
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