[Yt-svn] commit/yt: brittonsmith: Changed AngularMomentumX, Y, and Z fields to not be listed as
Bitbucket
commits-noreply at bitbucket.org
Sat Jul 16 09:22:33 PDT 2011
1 new changeset in yt:
http://bitbucket.org/yt_analysis/yt/changeset/b29dbb5b6b78/
changeset: b29dbb5b6b78
branch: yt
user: brittonsmith
date: 2011-07-16 18:22:21
summary: Changed AngularMomentumX, Y, and Z fields to not be listed as
vector fields, since they are not. This was causing errors when
using these fields with derived quantities.
affected #: 1 file (3 bytes)
--- a/yt/data_objects/universal_fields.py Thu Jul 14 13:41:14 2011 -0400
+++ b/yt/data_objects/universal_fields.py Sat Jul 16 12:22:21 2011 -0400
@@ -626,17 +626,17 @@
def _AngularMomentumX(field, data):
return data["CellMass"] * data["SpecificAngularMomentumX"]
add_field("AngularMomentumX", function=_AngularMomentumX,
- units=r"\rm{g}\/\rm{cm}^2/\rm{s}", vector_field=True,
+ units=r"\rm{g}\/\rm{cm}^2/\rm{s}", vector_field=False,
validators=[ValidateParameter('center')])
def _AngularMomentumY(field, data):
return data["CellMass"] * data["SpecificAngularMomentumY"]
add_field("AngularMomentumY", function=_AngularMomentumY,
- units=r"\rm{g}\/\rm{cm}^2/\rm{s}", vector_field=True,
+ units=r"\rm{g}\/\rm{cm}^2/\rm{s}", vector_field=False,
validators=[ValidateParameter('center')])
def _AngularMomentumZ(field, data):
return data["CellMass"] * data["SpecificAngularMomentumZ"]
add_field("AngularMomentumZ", function=_AngularMomentumZ,
- units=r"\rm{g}\/\rm{cm}^2/\rm{s}", vector_field=True,
+ units=r"\rm{g}\/\rm{cm}^2/\rm{s}", vector_field=False,
validators=[ValidateParameter('center')])
def _ParticleSpecificAngularMomentum(field, data):
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