<html><body>
<p>1 new commit in yt:</p>
<p><a href="https://bitbucket.org/yt_analysis/yt/commits/f828b79bde2b/">https://bitbucket.org/yt_analysis/yt/commits/f828b79bde2b/</a> Changeset:   f828b79bde2b Branch:      yt User:        atmyers Date:        2016-04-29 17:28:36+00:00 Summary:     Merged in yihaochen/yt (pull request #2133)</p>
<p>Fix x-ray display_name and documentation Affected #:  2 files</p>
<p>diff -r 35a1eb08de41efe96e42804b49a6993098af311c -r f828b79bde2be6541a9ee80b1eaef285258c4a89 doc/source/analyzing/analysis_modules/xray_emission_fields.rst --- a/doc/source/analyzing/analysis_modules/xray_emission_fields.rst +++ b/doc/source/analyzing/analysis_modules/xray_emission_fields.rst @@ -32,7 +32,7 @@</p>
<pre>  from yt.analysis_modules.spectral_integrator.api import \
       add_xray_emissivity_field
</pre>
<ul><li><p>xray_fields = add_xray_emissivity_field(0.5, 7.0)</p></li></ul>
<p>+  xray_fields = add_xray_emissivity_field(ds, 0.5, 7.0)</p>
<pre>Additional keyword arguments are:
</pre>
<p>@@ -49,7 +49,8 @@</p>
<pre>* **constant_metallicity** (*float*): If specified, assume a constant
  metallicity for the emission from metals.  The *with_metals* keyword</pre>
<ul><li><p>must be set to False to use this.  Default: None.</p></li></ul>
<p>+   must be set to False to use this. It should be given in unit of solar metallicity. +   Default: None.</p>
<pre>The resulting fields can be used like all normal fields. The function will return the names of
the created fields in a Python list.</pre>
<p>@@ -60,7 +61,7 @@</p>
<pre>  from yt.analysis_modules.spectral_integrator.api import \
       add_xray_emissivity_field
</pre>
<ul><li><p>xray_fields = add_xray_emissivity_field(0.5, 7.0, filename="apec_emissivity.h5")</p></li></ul>
<p>+  xray_fields = add_xray_emissivity_field(ds, 0.5, 7.0, filename="apec_emissivity.h5")</p>
<pre>ds = yt.load("enzo_tiny_cosmology/DD0046/DD0046")
plot = yt.SlicePlot(ds, 'x', 'xray_luminosity_0.5_7.0_keV')</pre>
<p>diff -r 35a1eb08de41efe96e42804b49a6993098af311c -r f828b79bde2be6541a9ee80b1eaef285258c4a89 yt/analysis_modules/spectral_integrator/spectral_frequency_integrator.py --- a/yt/analysis_modules/spectral_integrator/spectral_frequency_integrator.py +++ b/yt/analysis_modules/spectral_integrator/spectral_frequency_integrator.py @@ -176,7 +176,7 @@</p>
<pre>constant_metallicity: float, optional
    If specified, assume a constant metallicity for the emission
    from metals.  The *with_metals* keyword must be set to False</pre>
<ul><li><p>to use this.</p></li></ul>
<p>+        to use this. It should be given in unit of solar metallicity.</p>
<pre>        Default: None.

    This will create three fields:</pre>
<p>@@ -245,7 +245,7 @@</p>
<pre>emiss_name = "xray_emissivity_%s_%s_keV" % (e_min, e_max)
ds.add_field(("gas", emiss_name), function=_emissivity_field,</pre>
<ul><li><p>display_name=r"\epsilon_{X}\ (%s-%s\ keV)" % (e_min, e_max),</p></li></ul>
<p>+                 display_name=r"\epsilon_{X} (%s-%s keV)" % (e_min, e_max),</p>
<pre>                 units="erg/cm**3/s")

    def _luminosity_field(field, data):</pre>
<p>@@ -253,7 +253,7 @@</p>
<pre>lum_name = "xray_luminosity_%s_%s_keV" % (e_min, e_max)
ds.add_field(("gas", lum_name), function=_luminosity_field,</pre>
<ul><li><p>display_name=r"\rm{L}_{X}\ (%s-%s\ keV)" % (e_min, e_max),</p></li></ul>
<p>+                 display_name=r"\rm{L}_{X} (%s-%s keV)" % (e_min, e_max),</p>
<pre>                 units="erg/s")

    def _photon_emissivity_field(field, data):</pre>
<p>@@ -273,7 +273,7 @@</p>
<pre>phot_name = "xray_photon_emissivity_%s_%s_keV" % (e_min, e_max)
ds.add_field(("gas", phot_name), function=_photon_emissivity_field,</pre>
<ul><li><p>display_name=r"\epsilon_{X}\ (%s-%s\ keV)" % (e_min, e_max),</p></li></ul>
<p>+                 display_name=r"\epsilon_{X} (%s-%s keV)" % (e_min, e_max),</p>
<pre>                 units="photons/cm**3/s")

    return emiss_name, lum_name, phot_name</pre>
<p>Repository URL: <a href="https://bitbucket.org/yt_analysis/yt/">https://bitbucket.org/yt_analysis/yt/</a></p>
<p>—</p>
<p>This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.</p>

<img src="http://link.bitbucket.org/wf/open?upn=ll4ctv0L-2ByeRZFC1LslHcg6aJmnQ70VruLbmeLQr27AQuMRpUKbdys8aPSvAsBfE-2FvVYbsGRNoUcdy6T0qH-2BFT-2BT-2B4xdZhKDvBl5oI64U28EvbI0ZKJAH0IxdTLilyi5lRgA7pmfPSKmHwQHE4mRzMPAZxBRyatTjZNS3ne0gwTECXlVLqpTV5rn0dKNC3o0R6iJf6q9Va8dmDwCMKoOoxpqxLQLpAV0Bm7lOCnV8ZQ-3D" alt="" width="1" height="1" border="0" style="height:1px !important;width:1px !important;border-width:0 !important;margin-top:0 !important;margin-bottom:0 !important;margin-right:0 !important;margin-left:0 !important;padding-top:0 !important;padding-bottom:0 !important;padding-right:0 !important;padding-left:0 !important;"/>
</body></html>