[yt-svn] commit/yt: ngoldbaum: Fixing some latex erorrs in the nyx frontend
Bitbucket
commits-noreply at bitbucket.org
Mon Jul 16 15:21:09 PDT 2012
1 new commit in yt:
https://bitbucket.org/yt_analysis/yt/changeset/19a89b923cbb/
changeset: 19a89b923cbb
branch: yt
user: ngoldbaum
date: 2012-07-16 22:00:40
summary: Fixing some latex erorrs in the nyx frontend
affected #: 1 file
diff -r fd1df40e7ca111bd6868c2c8c494e872919d5b48 -r 19a89b923cbb2287fb51988936884672a701b739 yt/frontends/nyx/fields.py
--- a/yt/frontends/nyx/fields.py
+++ b/yt/frontends/nyx/fields.py
@@ -44,13 +44,13 @@
# Density
add_nyx_field("density", function=lambda a, b: None, take_log=True,
validators=[ValidateDataField("density")],
- units=r"\rm{g}} / \rm{cm}^3",
- projected_units =r"\rm{g}} / \rm{cm}^2")
-KnownNyxFields["density"]._projected_units =r"\rm{g}} / \rm{cm}^2"
+ units=r"\rm{g} / \rm{cm}^3",
+ projected_units =r"\rm{g} / \rm{cm}^2")
+KnownNyxFields["density"]._projected_units =r"\rm{g} / \rm{cm}^2"
add_field("Density", function=TranslationFunc("density"), take_log=True,
- units=r"\rm{g}} / \rm{cm}^3",
- projected_units =r"\rm{g}} / \rm{cm}^2")
+ units=r"\rm{g} / \rm{cm}^3",
+ projected_units =r"\rm{g} / \rm{cm}^2")
# Particle mass in units of $ M_{\odot}
def _convertParticleMassMsun(data):
@@ -64,8 +64,8 @@
add_nyx_field("Dark_Matter_Density", function=TranslationFunc("particle_mass_density"),
take_log=True,
- units=r"\rm{g}} / \rm{cm}^3",particle_type=True,
- projected_units =r"\rm{g}} / \rm{cm}^2")
+ units=r"\rm{g} / \rm{cm}^3",particle_type=True,
+ projected_units =r"\rm{g} / \rm{cm}^2")
# Energy Density
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