Skip to content

Commit

Permalink
commit docs dev version
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Nov 3, 2023
1 parent bfe7fae commit 65d6864
Show file tree
Hide file tree
Showing 861 changed files with 1,689 additions and 1,583 deletions.
Binary file modified docs/dev/.doctrees/api-reference/astro.doctree
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified docs/dev/.doctrees/api/gammapy.astro.darkmatter.JFactory.doctree
Binary file not shown.
Binary file not shown.
Binary file modified docs/dev/.doctrees/api/gammapy.astro.darkmatter.NFWProfile.doctree
Binary file not shown.
Binary file modified docs/dev/.doctrees/api/gammapy.astro.darkmatter.PrimaryFlux.doctree
Binary file not shown.
Binary file modified docs/dev/.doctrees/api/gammapy.astro.darkmatter.ZhaoProfile.doctree
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified docs/dev/.doctrees/api/gammapy.astro.source.PWN.doctree
Binary file not shown.
Binary file modified docs/dev/.doctrees/api/gammapy.astro.source.Pulsar.doctree
Binary file not shown.
Binary file modified docs/dev/.doctrees/api/gammapy.astro.source.SNR.doctree
Binary file not shown.
Binary file not shown.
Binary file modified docs/dev/.doctrees/api/gammapy.astro.source.SimplePulsar.doctree
Binary file not shown.
Binary file modified docs/dev/.doctrees/environment.pickle
Binary file not shown.
Binary file modified docs/dev/.doctrees/index.doctree
Binary file not shown.
Binary file modified docs/dev/.doctrees/tutorials/analysis-1d/cta_sensitivity.doctree
Binary file not shown.
Binary file not shown.
Binary file modified docs/dev/.doctrees/tutorials/analysis-1d/sed_fitting.doctree
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified docs/dev/.doctrees/tutorials/analysis-2d/detect.doctree
Binary file not shown.
Binary file modified docs/dev/.doctrees/tutorials/analysis-2d/modeling_2D.doctree
Binary file not shown.
Binary file modified docs/dev/.doctrees/tutorials/analysis-2d/ring_background.doctree
Binary file not shown.
Binary file not shown.
Binary file modified docs/dev/.doctrees/tutorials/analysis-3d/analysis_3d.doctree
Binary file not shown.
Binary file modified docs/dev/.doctrees/tutorials/analysis-3d/analysis_mwl.doctree
Binary file not shown.
Binary file not shown.
Binary file modified docs/dev/.doctrees/tutorials/analysis-3d/event_sampling.doctree
Binary file not shown.
Binary file not shown.
Binary file modified docs/dev/.doctrees/tutorials/analysis-3d/flux_profiles.doctree
Binary file not shown.
Binary file not shown.
Binary file modified docs/dev/.doctrees/tutorials/analysis-3d/simulate_3d.doctree
Binary file not shown.
Binary file modified docs/dev/.doctrees/tutorials/analysis-time/light_curve.doctree
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified docs/dev/.doctrees/tutorials/api/astro_dark_matter.doctree
Binary file not shown.
Binary file modified docs/dev/.doctrees/tutorials/api/catalog.doctree
Binary file not shown.
Binary file modified docs/dev/.doctrees/tutorials/api/datasets.doctree
Binary file not shown.
Binary file modified docs/dev/.doctrees/tutorials/api/fitting.doctree
Binary file not shown.
Binary file modified docs/dev/.doctrees/tutorials/api/makers.doctree
Binary file not shown.
Binary file modified docs/dev/.doctrees/tutorials/api/maps.doctree
Binary file not shown.
Binary file modified docs/dev/.doctrees/tutorials/api/mask_maps.doctree
Binary file not shown.
Binary file modified docs/dev/.doctrees/tutorials/api/model_management.doctree
Binary file not shown.
Binary file modified docs/dev/.doctrees/tutorials/api/models.doctree
Binary file not shown.
Binary file modified docs/dev/.doctrees/tutorials/api/observation_clustering.doctree
Binary file not shown.
Binary file modified docs/dev/.doctrees/tutorials/api/sg_execution_times.doctree
Binary file not shown.
Binary file modified docs/dev/.doctrees/tutorials/data/cta.doctree
Binary file not shown.
Binary file modified docs/dev/.doctrees/tutorials/data/fermi_lat.doctree
Binary file not shown.
Binary file modified docs/dev/.doctrees/tutorials/data/hawc.doctree
Binary file not shown.
Binary file modified docs/dev/.doctrees/tutorials/data/hess.doctree
Binary file not shown.
Binary file modified docs/dev/.doctrees/tutorials/data/sg_execution_times.doctree
Binary file not shown.
Binary file modified docs/dev/.doctrees/tutorials/scripts/sg_execution_times.doctree
Binary file not shown.
Binary file modified docs/dev/.doctrees/tutorials/starting/analysis_1.doctree
Binary file not shown.
Binary file modified docs/dev/.doctrees/tutorials/starting/analysis_2.doctree
Binary file not shown.
Binary file modified docs/dev/.doctrees/tutorials/starting/overview.doctree
Binary file not shown.
Binary file modified docs/dev/.doctrees/tutorials/starting/sg_execution_times.doctree
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file modified docs/dev/_downloads/432ee3a608125ae95df2e8d950f07716/dl3-1.pdf
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified docs/dev/_downloads/84424d59ec624940199b69d87a792d50/index-1.pdf
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified docs/dev/_downloads/c6bad13b7bd034ce07497e4d5025d5d2/edisp-1.pdf
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified docs/dev/_images/plot_spiral_arms.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/dev/_images/sphx_glr_light_curve_simulation_001.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/dev/_images/sphx_glr_light_curve_simulation_002.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/dev/_images/sphx_glr_light_curve_simulation_thumb.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/dev/_images/sphx_glr_plot_constant_temporal_001.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/dev/_images/sphx_glr_plot_constant_temporal_thumb.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/dev/_images/sphx_glr_plot_linear_temporal_001.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/dev/_images/sphx_glr_plot_linear_temporal_thumb.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/dev/_images/sphx_glr_plot_powerlaw_temporal_001.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/dev/_images/sphx_glr_plot_powerlaw_temporal_thumb.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/dev/_images/sphx_glr_plot_sine_temporal_001.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/dev/_images/sphx_glr_plot_sine_temporal_thumb.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/dev/_images/sphx_glr_simulate_3d_001.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/dev/_images/sphx_glr_simulate_3d_002.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/dev/_images/sphx_glr_simulate_3d_thumb.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/dev/_images/sphx_glr_spectral_analysis_rad_max_005.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs/dev/_modules/gammapy/analysis/config.html
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@

$("#version_switcher_menu").append(node);
// replace dropdown button text with the preferred display name of
// this version, rather than using sphinx's 1.2.dev927+g7d6757ef7 variable.
// this version, rather than using sphinx's 1.2.dev937+g87a9b7512 variable.
// also highlight the dropdown entry for the currently-viewed
// version's entry
if (entry.version == "dev") {
Expand Down
2 changes: 1 addition & 1 deletion docs/dev/_modules/gammapy/analysis/core.html
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@

$("#version_switcher_menu").append(node);
// replace dropdown button text with the preferred display name of
// this version, rather than using sphinx's 1.2.dev927+g7d6757ef7 variable.
// this version, rather than using sphinx's 1.2.dev937+g87a9b7512 variable.
// also highlight the dropdown entry for the currently-viewed
// version's entry
if (entry.version == "dev") {
Expand Down
59 changes: 34 additions & 25 deletions docs/dev/_modules/gammapy/astro/darkmatter/profiles.html

Large diffs are not rendered by default.

68 changes: 36 additions & 32 deletions docs/dev/_modules/gammapy/astro/darkmatter/spectra.html
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@

$("#version_switcher_menu").append(node);
// replace dropdown button text with the preferred display name of
// this version, rather than using sphinx's 1.2.dev927+g7d6757ef7 variable.
// this version, rather than using sphinx's 1.2.dev937+g87a9b7512 variable.
// also highlight the dropdown entry for the currently-viewed
// version's entry
if (entry.version == "dev") {
Expand Down Expand Up @@ -290,12 +290,12 @@ <h1>Source code for gammapy.astro.darkmatter.spectra</h1><div class="highlight">
<span class="sd"> to the nearest available value. The spectra will be available as</span>
<span class="sd"> `~gammapy.modeling.models.TemplateNDSpectralModel` for a chosen dark matter mass and</span>
<span class="sd"> annihilation channel. Using a `~gammapy.modeling.models.TemplateNDSpectralModel`</span>
<span class="sd"> allows the interpolation beween different dark matter masses.</span>
<span class="sd"> allows the interpolation between different dark matter masses.</span>

<span class="sd"> Parameters</span>
<span class="sd"> ----------</span>
<span class="sd"> mDM : `~astropy.units.Quantity`</span>
<span class="sd"> Dark matter particle mass as rest mass energy</span>
<span class="sd"> Dark matter particle mass as rest mass energy.</span>
<span class="sd"> channel: str</span>
<span class="sd"> Annihilation channel. List available channels with `~gammapy.spectrum.PrimaryFlux.allowed_channels`.</span>

Expand Down Expand Up @@ -404,7 +404,7 @@ <h1>Source code for gammapy.astro.darkmatter.spectra</h1><div class="highlight">

<span class="nd">@property</span>
<span class="k">def</span> <span class="nf">channel</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Annihilation channel (str).&quot;&quot;&quot;</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Annihilation channel as a string.&quot;&quot;&quot;</span>
<span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">_channel</span>

<span class="nd">@channel</span><span class="o">.</span><span class="n">setter</span>
Expand All @@ -417,6 +417,7 @@ <h1>Source code for gammapy.astro.darkmatter.spectra</h1><div class="highlight">
<span class="bp">self</span><span class="o">.</span><span class="n">_channel</span> <span class="o">=</span> <span class="n">channel</span>

<div class="viewcode-block" id="PrimaryFlux.evaluate"><a class="viewcode-back" href="../../../../api/gammapy.astro.darkmatter.PrimaryFlux.html#gammapy.astro.darkmatter.PrimaryFlux.evaluate">[docs]</a> <span class="k">def</span> <span class="nf">evaluate</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">energy</span><span class="p">,</span> <span class="o">**</span><span class="n">kwargs</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Evaluate the primary flux.&quot;&quot;&quot;</span>
<span class="n">mass</span> <span class="o">=</span> <span class="p">{</span><span class="s2">&quot;mass&quot;</span><span class="p">:</span> <span class="bp">self</span><span class="o">.</span><span class="n">mDM</span><span class="p">}</span>
<span class="n">kwargs</span><span class="o">.</span><span class="n">update</span><span class="p">(</span><span class="n">mass</span><span class="p">)</span>

Expand Down Expand Up @@ -455,30 +456,31 @@ <h1>Source code for gammapy.astro.darkmatter.spectra</h1><div class="highlight">
<span class="sd"> Parameters</span>
<span class="sd"> ----------</span>
<span class="sd"> mass : `~astropy.units.Quantity`</span>
<span class="sd"> Dark matter mass</span>
<span class="sd"> Dark matter mass.</span>
<span class="sd"> channel : str</span>
<span class="sd"> Annihilation channel for `~gammapy.astro.darkmatter.PrimaryFlux`, e.g. &quot;b&quot; for &quot;bbar&quot;. See `PrimaryFlux.channel_registry` for more.</span>
<span class="sd"> Annihilation channel for `~gammapy.astro.darkmatter.PrimaryFlux`, e.g. &quot;b&quot; for &quot;bbar&quot;.</span>
<span class="sd"> See `PrimaryFlux.channel_registry` for more.</span>
<span class="sd"> scale : float</span>
<span class="sd"> Scale parameter for model fitting</span>
<span class="sd"> Scale parameter for model fitting.</span>
<span class="sd"> jfactor : `~astropy.units.Quantity`</span>
<span class="sd"> Integrated J-Factor needed when `~gammapy.modeling.models.PointSpatialModel`</span>
<span class="sd"> spatial model is used</span>
<span class="sd"> is used.</span>
<span class="sd"> z: float</span>
<span class="sd"> Redshift value</span>
<span class="sd"> Redshift value.</span>
<span class="sd"> k: int</span>
<span class="sd"> Type of dark matter particle (k:2 Majorana, k:4 Dirac)</span>
<span class="sd"> Type of dark matter particle (k:2 Majorana, k:4 Dirac).</span>

<span class="sd"> Examples</span>
<span class="sd"> --------</span>
<span class="sd"> This is how to instantiate a `DarkMatterAnnihilationSpectralModel` model::</span>

<span class="sd"> from astropy import units as u</span>
<span class="sd"> from gammapy.astro.darkmatter import DarkMatterAnnihilationSpectralModel</span>
<span class="sd"> &gt;&gt;&gt; import astropy.units as u</span>
<span class="sd"> &gt;&gt;&gt; from gammapy.astro.darkmatter import DarkMatterAnnihilationSpectralModel</span>

<span class="sd"> channel = &quot;b&quot;</span>
<span class="sd"> massDM = 5000*u.Unit(&quot;GeV&quot;)</span>
<span class="sd"> jfactor = 3.41e19 * u.Unit(&quot;GeV2 cm-5&quot;)</span>
<span class="sd"> modelDM = DarkMatterAnnihilationSpectralModel(mass=massDM, channel=channel, jfactor=jfactor) # noqa: E501</span>
<span class="sd"> &gt;&gt;&gt; channel = &quot;b&quot;</span>
<span class="sd"> &gt;&gt;&gt; massDM = 5000*u.Unit(&quot;GeV&quot;)</span>
<span class="sd"> &gt;&gt;&gt; jfactor = 3.41e19 * u.Unit(&quot;GeV2 cm-5&quot;)</span>
<span class="sd"> &gt;&gt;&gt; modelDM = DarkMatterAnnihilationSpectralModel(mass=massDM, channel=channel, jfactor=jfactor) # noqa: E501</span>

<span class="sd"> References</span>
<span class="sd"> ----------</span>
Expand Down Expand Up @@ -521,6 +523,7 @@ <h1>Source code for gammapy.astro.darkmatter.spectra</h1><div class="highlight">
<span class="k">return</span> <span class="n">flux</span></div>

<div class="viewcode-block" id="DarkMatterAnnihilationSpectralModel.to_dict"><a class="viewcode-back" href="../../../../api/gammapy.astro.darkmatter.DarkMatterAnnihilationSpectralModel.html#gammapy.astro.darkmatter.DarkMatterAnnihilationSpectralModel.to_dict">[docs]</a> <span class="k">def</span> <span class="nf">to_dict</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">full_output</span><span class="o">=</span><span class="kc">False</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Convert to dictionary.&quot;&quot;&quot;</span>
<span class="n">data</span> <span class="o">=</span> <span class="nb">super</span><span class="p">()</span><span class="o">.</span><span class="n">to_dict</span><span class="p">(</span><span class="n">full_output</span><span class="o">=</span><span class="n">full_output</span><span class="p">)</span>
<span class="n">data</span><span class="p">[</span><span class="s2">&quot;spectral&quot;</span><span class="p">][</span><span class="s2">&quot;channel&quot;</span><span class="p">]</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">channel</span>
<span class="n">data</span><span class="p">[</span><span class="s2">&quot;spectral&quot;</span><span class="p">][</span><span class="s2">&quot;mass&quot;</span><span class="p">]</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">mass</span><span class="o">.</span><span class="n">to_string</span><span class="p">()</span>
Expand All @@ -531,17 +534,17 @@ <h1>Source code for gammapy.astro.darkmatter.spectra</h1><div class="highlight">

<div class="viewcode-block" id="DarkMatterAnnihilationSpectralModel.from_dict"><a class="viewcode-back" href="../../../../api/gammapy.astro.darkmatter.DarkMatterAnnihilationSpectralModel.html#gammapy.astro.darkmatter.DarkMatterAnnihilationSpectralModel.from_dict">[docs]</a> <span class="nd">@classmethod</span>
<span class="k">def</span> <span class="nf">from_dict</span><span class="p">(</span><span class="bp">cls</span><span class="p">,</span> <span class="n">data</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Create spectral model from dict</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Create spectral model from a dictionary.</span>

<span class="sd"> Parameters</span>
<span class="sd"> ----------</span>
<span class="sd"> data : dict</span>
<span class="sd"> Dict with model data</span>
<span class="sd"> Dictionary with model data.</span>

<span class="sd"> Returns</span>
<span class="sd"> -------</span>
<span class="sd"> model : `DarkMatterAnnihilationSpectralModel`</span>
<span class="sd"> Dark matter annihilation spectral model</span>
<span class="sd"> Dark matter annihilation spectral model.</span>
<span class="sd"> &quot;&quot;&quot;</span>
<span class="n">data</span> <span class="o">=</span> <span class="n">data</span><span class="p">[</span><span class="s2">&quot;spectral&quot;</span><span class="p">]</span>
<span class="n">data</span><span class="o">.</span><span class="n">pop</span><span class="p">(</span><span class="s2">&quot;type&quot;</span><span class="p">)</span>
Expand All @@ -563,28 +566,29 @@ <h1>Source code for gammapy.astro.darkmatter.spectra</h1><div class="highlight">
<span class="sd"> Parameters</span>
<span class="sd"> ----------</span>
<span class="sd"> mass : `~astropy.units.Quantity`</span>
<span class="sd"> Dark matter mass</span>
<span class="sd"> Dark matter mass.</span>
<span class="sd"> channel : str</span>
<span class="sd"> Annihilation channel for `~gammapy.astro.darkmatter.PrimaryFlux`, e.g. &quot;b&quot; for &quot;bbar&quot;. See `PrimaryFlux.channel_registry` for more.</span>
<span class="sd"> Annihilation channel for `~gammapy.astro.darkmatter.PrimaryFlux`, e.g. &quot;b&quot; for &quot;bbar&quot;.</span>
<span class="sd"> See `PrimaryFlux.channel_registry` for more.</span>
<span class="sd"> scale : float</span>
<span class="sd"> Scale parameter for model fitting</span>
<span class="sd"> jfactor : `~astropy.units.Quantity`</span>
<span class="sd"> Integrated J-Factor needed when `~gammapy.modeling.models.PointSpatialModel`</span>
<span class="sd"> spatial model is used</span>
<span class="sd"> is used.</span>
<span class="sd"> z: float</span>
<span class="sd"> Redshift value</span>
<span class="sd"> Redshift value.</span>

<span class="sd"> Examples</span>
<span class="sd"> --------</span>
<span class="sd"> This is how to instantiate a `DarkMatterAnnihilationSpectralModel` model::</span>

<span class="sd"> from astropy import units as u</span>
<span class="sd"> from gammapy.astro.darkmatter import DarkMatterDecaySpectralModel</span>
<span class="sd"> &gt;&gt;&gt; import astropy.units as u</span>
<span class="sd"> &gt;&gt;&gt; from gammapy.astro.darkmatter import DarkMatterDecaySpectralModel</span>

<span class="sd"> channel = &quot;b&quot;</span>
<span class="sd"> massDM = 5000*u.Unit(&quot;GeV&quot;)</span>
<span class="sd"> jfactor = 3.41e19 * u.Unit(&quot;GeV cm-2&quot;)</span>
<span class="sd"> modelDM = DarkMatterDecaySpectralModel(mass=massDM, channel=channel, jfactor=jfactor) # noqa: E501</span>
<span class="sd"> &gt;&gt;&gt; channel = &quot;b&quot;</span>
<span class="sd"> &gt;&gt;&gt; massDM = 5000*u.Unit(&quot;GeV&quot;)</span>
<span class="sd"> &gt;&gt;&gt; jfactor = 3.41e19 * u.Unit(&quot;GeV cm-2&quot;)</span>
<span class="sd"> &gt;&gt;&gt; modelDM = DarkMatterDecaySpectralModel(mass=massDM, channel=channel, jfactor=jfactor) # noqa: E501</span>

<span class="sd"> References</span>
<span class="sd"> ----------</span>
Expand Down Expand Up @@ -633,17 +637,17 @@ <h1>Source code for gammapy.astro.darkmatter.spectra</h1><div class="highlight">

<div class="viewcode-block" id="DarkMatterDecaySpectralModel.from_dict"><a class="viewcode-back" href="../../../../api/gammapy.astro.darkmatter.DarkMatterDecaySpectralModel.html#gammapy.astro.darkmatter.DarkMatterDecaySpectralModel.from_dict">[docs]</a> <span class="nd">@classmethod</span>
<span class="k">def</span> <span class="nf">from_dict</span><span class="p">(</span><span class="bp">cls</span><span class="p">,</span> <span class="n">data</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Create spectral model from dict</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Create spectral model from dictionary.</span>

<span class="sd"> Parameters</span>
<span class="sd"> ----------</span>
<span class="sd"> data : dict</span>
<span class="sd"> Dict with model data</span>
<span class="sd"> Dictionary with model data.</span>

<span class="sd"> Returns</span>
<span class="sd"> -------</span>
<span class="sd"> model : `DarkMatterDecaySpectralModel`</span>
<span class="sd"> Dark matter decay spectral model</span>
<span class="sd"> Dark matter decay spectral model.</span>
<span class="sd"> &quot;&quot;&quot;</span>
<span class="n">data</span> <span class="o">=</span> <span class="n">data</span><span class="p">[</span><span class="s2">&quot;spectral&quot;</span><span class="p">]</span>
<span class="n">data</span><span class="o">.</span><span class="n">pop</span><span class="p">(</span><span class="s2">&quot;type&quot;</span><span class="p">)</span>
Expand Down
10 changes: 5 additions & 5 deletions docs/dev/_modules/gammapy/astro/darkmatter/utils.html
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@

$("#version_switcher_menu").append(node);
// replace dropdown button text with the preferred display name of
// this version, rather than using sphinx's 1.2.dev927+g7d6757ef7 variable.
// this version, rather than using sphinx's 1.2.dev937+g87a9b7512 variable.
// also highlight the dropdown entry for the currently-viewed
// version's entry
if (entry.version == "dev") {
Expand Down Expand Up @@ -281,13 +281,13 @@ <h1>Source code for gammapy.astro.darkmatter.utils</h1><div class="highlight"><p
<span class="sd"> Parameters</span>
<span class="sd"> ----------</span>
<span class="sd"> geom : `~gammapy.maps.WcsGeom`</span>
<span class="sd"> Reference geometry</span>
<span class="sd"> Reference geometry.</span>
<span class="sd"> profile : `~gammapy.astro.darkmatter.profiles.DMProfile`</span>
<span class="sd"> Dark matter profile</span>
<span class="sd"> Dark matter profile.</span>
<span class="sd"> distance : `~astropy.units.Quantity`</span>
<span class="sd"> Distance to convert angular scale of the map</span>
<span class="sd"> Distance to convert angular scale of the map.</span>
<span class="sd"> annihilation: bool, optional</span>
<span class="sd"> Decay or annihilation (default: True)</span>
<span class="sd"> Decay or annihilation. Default is True.</span>
<span class="sd"> &quot;&quot;&quot;</span>

<span class="k">def</span> <span class="fm">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">geom</span><span class="p">,</span> <span class="n">profile</span><span class="p">,</span> <span class="n">distance</span><span class="p">,</span> <span class="n">annihilation</span><span class="o">=</span><span class="kc">True</span><span class="p">):</span>
Expand Down
Loading

0 comments on commit 65d6864

Please sign in to comment.