[Yt-svn] commit/yt: 2 new changesets
Bitbucket
commits-noreply at bitbucket.org
Wed Sep 21 10:33:34 PDT 2011
2 new changesets in yt:
http://bitbucket.org/yt_analysis/yt/changeset/d7105af685bf/
changeset: d7105af685bf
branch: yt
user: jsoishi
date: 2011-09-21 19:31:43
summary: replaced \ss.
affected #: 1 file (-1 bytes)
--- a/yt/frontends/enzo/fields.py Wed Sep 21 08:39:40 2011 -0400
+++ b/yt/frontends/enzo/fields.py Wed Sep 21 10:31:43 2011 -0700
@@ -380,7 +380,7 @@
for field in ['Bx','By','Bz']:
f = EnzoFieldInfo[field]
f._convert_function=_convertBfield
- f._units=r"\mathrm{Gau\ss}"
+ f._units=r"\mathrm{Gauss}"
f.take_log=False
def _Bmag(field, data):
@@ -388,7 +388,7 @@
"""
return na.sqrt(data['Bx']**2 + data['By']**2 + data['Bz']**2)
-add_field("Bmag", function=_Bmag,display_name=r"|B|",units=r"\mathrm{Gau\ss}")
+add_field("Bmag", function=_Bmag,display_name=r"|B|",units=r"\mathrm{Gauss}")
#
@@ -476,7 +476,7 @@
for field in ['Bx','By','Bz']:
f = EnzoFieldInfo[field]
f._convert_function=_convertBfield
- f._units=r"\mathrm{Gau\ss}"
+ f._units=r"\mathrm{Gauss}"
f.take_log=False
def _Bmag(field, data):
@@ -484,4 +484,4 @@
"""
return na.sqrt(data['Bx']**2 + data['By']**2 + data['Bz']**2)
-add_field("Bmag", function=_Bmag,display_name=r"|B|",units=r"\mathrm{Gau\ss}")
+add_field("Bmag", function=_Bmag,display_name=r"|B|",units=r"\mathrm{Gauss}")
http://bitbucket.org/yt_analysis/yt/changeset/22ac529a1dab/
changeset: 22ac529a1dab
branch: yt
user: jsoishi
date: 2011-09-21 19:33:15
summary: corrected comment in MagneticEnergy field to reflect current state.
affected #: 1 file (-1 bytes)
--- a/yt/data_objects/universal_fields.py Wed Sep 21 10:31:43 2011 -0700
+++ b/yt/data_objects/universal_fields.py Wed Sep 21 10:33:15 2011 -0700
@@ -920,10 +920,9 @@
display_name=r"\mathrm{Particle}\/\mathrm{Density})")
def _MagneticEnergy(field,data):
- """WARNING WARNING WARNING: Units are not yet known to be
- correct. Trust the magnitude of this quantity at your own
- risk. However, it should just be a multiplicative offset from
- reality...
+ """This assumes that your front end has provided Bx, By, Bz in
+ units of Gauss. If you use MKS, make sure to write your own
+ MagneticEnergy field to deal with non-unitary \mu_0.
"""
return (data["Bx"]**2 + data["By"]**2 + data["Bz"]**2)/2.
add_field("MagneticEnergy",function=_MagneticEnergy,
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