[yt-svn] commit/yt: 3 new changesets
Bitbucket
commits-noreply at bitbucket.org
Wed Oct 31 07:53:56 PDT 2012
3 new commits in yt:
https://bitbucket.org/yt_analysis/yt/changeset/505e955ac0d2/
changeset: 505e955ac0d2
branch: yt
user: chiffre
date: 2012-10-31 13:50:35
summary: Fixed Latex-Syntax
affected #: 2 files
diff -r 8db15e870d38beaf2ee597db41f076dc0b946aa4 -r 505e955ac0d2f6545d90d591dbee05694f950bc8 yt/frontends/flash/fields.py
--- a/yt/frontends/flash/fields.py
+++ b/yt/frontends/flash/fields.py
@@ -99,8 +99,8 @@
add_field(fn1.split("_")[0] + "_Density",
function=_get_density(fn1), take_log=True,
display_name="%s\/Density" % fn1.split("_")[0],
- 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}",
)
def _get_convert(fname):
@@ -110,8 +110,8 @@
add_flash_field("dens", function=NullFunc, take_log=True,
convert_function=_get_convert("dens"),
- 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}"),
add_flash_field("velx", function=NullFunc, take_log=False,
convert_function=_get_convert("velx"),
units=r"\rm{cm}/\rm{s}")
@@ -159,10 +159,10 @@
units = r"\rm{K}")
add_flash_field("pres", function=NullFunc, take_log=True,
convert_function=_get_convert("pres"),
- units=r"\rm{erg}\//\/\rm{cm}^{3}")
+ units=r"\rm{erg}/\rm{cm}^{3}")
add_flash_field("pden", function=NullFunc, take_log=True,
convert_function=_get_convert("pden"),
- units=r"\rm{g}/\rm{cm}^3")
+ units=r"\rm{g}/\rm{cm}^{3}")
add_flash_field("magx", function=NullFunc, take_log=False,
convert_function=_get_convert("magx"),
units = r"\mathrm{Gau\ss}")
@@ -174,7 +174,7 @@
units = r"\mathrm{Gau\ss}")
add_flash_field("magp", function=NullFunc, take_log=True,
convert_function=_get_convert("magp"),
- units = r"\rm{erg}\//\/\rm{cm}^{3}")
+ units = r"\rm{erg}/\rm{cm}^{3}")
add_flash_field("divb", function=NullFunc, take_log=False,
convert_function=_get_convert("divb"),
units = r"\mathrm{Gau\ss}\/\rm{cm}")
@@ -186,10 +186,10 @@
units=r"\rm{ratio\/of\/specific\/heats}")
add_flash_field("gpot", function=NullFunc, take_log=False,
convert_function=_get_convert("gpot"),
- units=r"\rm{ergs\//\/g}")
+ units=r"\rm{ergs}/\rm{g}")
add_flash_field("gpol", function=NullFunc, take_log=False,
convert_function=_get_convert("gpol"),
- units = r"\rm{ergs\//\/g}")
+ units = r"\rm{ergs}/\rm{g}")
add_flash_field("flam", function=NullFunc, take_log=False,
convert_function=_get_convert("flam"))
diff -r 8db15e870d38beaf2ee597db41f076dc0b946aa4 -r 505e955ac0d2f6545d90d591dbee05694f950bc8 yt/visualization/plot_window.py
--- a/yt/visualization/plot_window.py
+++ b/yt/visualization/plot_window.py
@@ -773,9 +773,10 @@
field_name = self.data_source.pf.field_info[f].display_name
if field_name is None:
- field_name = r'$\rm{'+f+r'}$'
+ field_name = f
elif field_name.find('$') == -1:
- field_name = r'$\rm{'+field_name+r'}$'
+ field_name = field_name
+ field_name=r'$\rm{'+field_name+r'}$'
parser = MathTextParser('Agg')
try:
https://bitbucket.org/yt_analysis/yt/changeset/59059c2db4b8/
changeset: 59059c2db4b8
branch: yt
user: chiffre
date: 2012-10-31 14:05:26
summary: Wrong changing
affected #: 1 file
diff -r 505e955ac0d2f6545d90d591dbee05694f950bc8 -r 59059c2db4b8c47ece031f2a6c5a0c0660820814 yt/visualization/plot_window.py
--- a/yt/visualization/plot_window.py
+++ b/yt/visualization/plot_window.py
@@ -773,10 +773,9 @@
field_name = self.data_source.pf.field_info[f].display_name
if field_name is None:
- field_name = f
+ field_name = r'$\rm{'+f+r'}$'
elif field_name.find('$') == -1:
- field_name = field_name
- field_name=r'$\rm{'+field_name+r'}$'
+ field_name = r'$\rm{'+field_name+r'}$'
parser = MathTextParser('Agg')
try:
https://bitbucket.org/yt_analysis/yt/changeset/a9f28dd0dcb9/
changeset: a9f28dd0dcb9
branch: yt
user: MatthewTurk
date: 2012-10-31 15:53:54
summary: Merged in chiffre/yt (pull request #321)
affected #: 2 files
diff -r 7211b81e0ac61db6682f987a2838caa6bb743e16 -r a9f28dd0dcb90d1d75ec39844c3d36ecae989ee5 yt/frontends/flash/fields.py
--- a/yt/frontends/flash/fields.py
+++ b/yt/frontends/flash/fields.py
@@ -99,8 +99,8 @@
add_field(fn1.split("_")[0] + "_Density",
function=_get_density(fn1), take_log=True,
display_name="%s\/Density" % fn1.split("_")[0],
- 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}",
)
def _get_convert(fname):
@@ -110,8 +110,8 @@
add_flash_field("dens", function=NullFunc, take_log=True,
convert_function=_get_convert("dens"),
- 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}"),
add_flash_field("velx", function=NullFunc, take_log=False,
convert_function=_get_convert("velx"),
units=r"\rm{cm}/\rm{s}")
@@ -159,10 +159,10 @@
units = r"\rm{K}")
add_flash_field("pres", function=NullFunc, take_log=True,
convert_function=_get_convert("pres"),
- units=r"\rm{erg}\//\/\rm{cm}^{3}")
+ units=r"\rm{erg}/\rm{cm}^{3}")
add_flash_field("pden", function=NullFunc, take_log=True,
convert_function=_get_convert("pden"),
- units=r"\rm{g}/\rm{cm}^3")
+ units=r"\rm{g}/\rm{cm}^{3}")
add_flash_field("magx", function=NullFunc, take_log=False,
convert_function=_get_convert("magx"),
units = r"\mathrm{Gau\ss}")
@@ -174,7 +174,7 @@
units = r"\mathrm{Gau\ss}")
add_flash_field("magp", function=NullFunc, take_log=True,
convert_function=_get_convert("magp"),
- units = r"\rm{erg}\//\/\rm{cm}^{3}")
+ units = r"\rm{erg}/\rm{cm}^{3}")
add_flash_field("divb", function=NullFunc, take_log=False,
convert_function=_get_convert("divb"),
units = r"\mathrm{Gau\ss}\/\rm{cm}")
@@ -186,10 +186,10 @@
units=r"\rm{ratio\/of\/specific\/heats}")
add_flash_field("gpot", function=NullFunc, take_log=False,
convert_function=_get_convert("gpot"),
- units=r"\rm{ergs\//\/g}")
+ units=r"\rm{ergs}/\rm{g}")
add_flash_field("gpol", function=NullFunc, take_log=False,
convert_function=_get_convert("gpol"),
- units = r"\rm{ergs\//\/g}")
+ units = r"\rm{ergs}/\rm{g}")
add_flash_field("flam", function=NullFunc, take_log=False,
convert_function=_get_convert("flam"))
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