Skip to content

Commit

Permalink
Deploying to gh-pages from @ 5346e00 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
maxnoe committed Oct 27, 2023
1 parent 0584ca3 commit 3ef2128
Show file tree
Hide file tree
Showing 130 changed files with 260 additions and 219 deletions.
2 changes: 1 addition & 1 deletion AUTHORS.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
pyirf
</a>
<div class="version">
0.10.2.dev4+gdbacc33
0.10.2.dev8+g5346e00
</div>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="search.html" method="get">
Expand Down
2 changes: 1 addition & 1 deletion _modules/astropy/units/core.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
pyirf
</a>
<div class="version">
0.10.2.dev4+gdbacc33
0.10.2.dev8+g5346e00
</div>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="../../../search.html" method="get">
Expand Down
2 changes: 1 addition & 1 deletion _modules/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
pyirf
</a>
<div class="version">
0.10.2.dev4+gdbacc33
0.10.2.dev8+g5346e00
</div>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="../search.html" method="get">
Expand Down
2 changes: 1 addition & 1 deletion _modules/pyirf/benchmarks/angular_resolution.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
pyirf
</a>
<div class="version">
0.10.2.dev4+gdbacc33
0.10.2.dev8+g5346e00
</div>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="../../../search.html" method="get">
Expand Down
11 changes: 7 additions & 4 deletions _modules/pyirf/benchmarks/energy_bias_resolution.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
pyirf
</a>
<div class="version">
0.10.2.dev4+gdbacc33
0.10.2.dev8+g5346e00
</div>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="../../../search.html" method="get">
Expand Down Expand Up @@ -235,15 +235,18 @@ <h1>Source code for pyirf.benchmarks.energy_bias_resolution</h1><div class="high
<span class="sd"> Bin edges for the relative energy migration (``reco_energy / true_energy``)</span>
<span class="sd"> &quot;&quot;&quot;</span>

<span class="n">cdf</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">cumsum</span><span class="p">(</span><span class="n">energy_dispersion</span><span class="p">,</span> <span class="n">axis</span><span class="o">=</span><span class="mi">1</span><span class="p">)</span>
<span class="n">bin_width</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">diff</span><span class="p">(</span><span class="n">migration_bins</span><span class="p">)</span>
<span class="n">cdf</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">cumsum</span><span class="p">(</span><span class="n">energy_dispersion</span> <span class="o">*</span> <span class="n">bin_width</span><span class="p">[</span><span class="n">np</span><span class="o">.</span><span class="n">newaxis</span><span class="p">,</span> <span class="p">:,</span> <span class="n">np</span><span class="o">.</span><span class="n">newaxis</span><span class="p">],</span> <span class="n">axis</span><span class="o">=</span><span class="mi">1</span><span class="p">)</span>

<span class="n">n_energy_bins</span><span class="p">,</span> <span class="n">_</span><span class="p">,</span> <span class="n">n_fov_bins</span> <span class="o">=</span> <span class="n">energy_dispersion</span><span class="o">.</span><span class="n">shape</span>

<span class="n">bias</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">zeros</span><span class="p">((</span><span class="n">n_energy_bins</span><span class="p">,</span> <span class="n">n_fov_bins</span><span class="p">))</span>
<span class="n">resolution</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">zeros</span><span class="p">((</span><span class="n">n_energy_bins</span><span class="p">,</span> <span class="n">n_fov_bins</span><span class="p">))</span>
<span class="n">bias</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">full</span><span class="p">((</span><span class="n">n_energy_bins</span><span class="p">,</span> <span class="n">n_fov_bins</span><span class="p">),</span> <span class="n">np</span><span class="o">.</span><span class="n">nan</span><span class="p">)</span>
<span class="n">resolution</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">full</span><span class="p">((</span><span class="n">n_energy_bins</span><span class="p">,</span> <span class="n">n_fov_bins</span><span class="p">),</span> <span class="n">np</span><span class="o">.</span><span class="n">nan</span><span class="p">)</span>

<span class="k">for</span> <span class="n">energy_bin</span> <span class="ow">in</span> <span class="nb">range</span><span class="p">(</span><span class="n">n_energy_bins</span><span class="p">):</span>
<span class="k">for</span> <span class="n">fov_bin</span> <span class="ow">in</span> <span class="nb">range</span><span class="p">(</span><span class="n">n_fov_bins</span><span class="p">):</span>
<span class="k">if</span> <span class="n">np</span><span class="o">.</span><span class="n">count_nonzero</span><span class="p">(</span><span class="n">cdf</span><span class="p">[</span><span class="n">energy_bin</span><span class="p">,</span> <span class="p">:,</span> <span class="n">fov_bin</span><span class="p">])</span> <span class="o">==</span> <span class="mi">0</span><span class="p">:</span>
<span class="k">continue</span>

<span class="n">low</span><span class="p">,</span> <span class="n">median</span><span class="p">,</span> <span class="n">high</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">interp</span><span class="p">(</span>
<span class="p">[</span><span class="n">NORM_LOWER_SIGMA</span><span class="p">,</span> <span class="n">MEDIAN</span><span class="p">,</span> <span class="n">NORM_UPPER_SIGMA</span><span class="p">],</span>
Expand Down
2 changes: 1 addition & 1 deletion _modules/pyirf/binning.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
pyirf
</a>
<div class="version">
0.10.2.dev4+gdbacc33
0.10.2.dev8+g5346e00
</div>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="../../search.html" method="get">
Expand Down
2 changes: 1 addition & 1 deletion _modules/pyirf/cut_optimization.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
pyirf
</a>
<div class="version">
0.10.2.dev4+gdbacc33
0.10.2.dev8+g5346e00
</div>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="../../search.html" method="get">
Expand Down
2 changes: 1 addition & 1 deletion _modules/pyirf/cuts.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
pyirf
</a>
<div class="version">
0.10.2.dev4+gdbacc33
0.10.2.dev8+g5346e00
</div>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="../../search.html" method="get">
Expand Down
2 changes: 1 addition & 1 deletion _modules/pyirf/gammapy.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
pyirf
</a>
<div class="version">
0.10.2.dev4+gdbacc33
0.10.2.dev8+g5346e00
</div>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="../../search.html" method="get">
Expand Down
2 changes: 1 addition & 1 deletion _modules/pyirf/interpolation/base_extrapolators.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
pyirf
</a>
<div class="version">
0.10.2.dev4+gdbacc33
0.10.2.dev8+g5346e00
</div>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="../../../search.html" method="get">
Expand Down
2 changes: 1 addition & 1 deletion _modules/pyirf/interpolation/base_interpolators.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
pyirf
</a>
<div class="version">
0.10.2.dev4+gdbacc33
0.10.2.dev8+g5346e00
</div>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="../../../search.html" method="get">
Expand Down
2 changes: 1 addition & 1 deletion _modules/pyirf/interpolation/component_estimators.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
pyirf
</a>
<div class="version">
0.10.2.dev4+gdbacc33
0.10.2.dev8+g5346e00
</div>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="../../../search.html" method="get">
Expand Down
2 changes: 1 addition & 1 deletion _modules/pyirf/interpolation/griddata_interpolator.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
pyirf
</a>
<div class="version">
0.10.2.dev4+gdbacc33
0.10.2.dev8+g5346e00
</div>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="../../../search.html" method="get">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
pyirf
</a>
<div class="version">
0.10.2.dev4+gdbacc33
0.10.2.dev8+g5346e00
</div>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="../../../search.html" method="get">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
pyirf
</a>
<div class="version">
0.10.2.dev4+gdbacc33
0.10.2.dev8+g5346e00
</div>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="../../../search.html" method="get">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
pyirf
</a>
<div class="version">
0.10.2.dev4+gdbacc33
0.10.2.dev8+g5346e00
</div>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="../../../search.html" method="get">
Expand Down
2 changes: 1 addition & 1 deletion _modules/pyirf/interpolation/quantile_interpolator.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
pyirf
</a>
<div class="version">
0.10.2.dev4+gdbacc33
0.10.2.dev8+g5346e00
</div>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="../../../search.html" method="get">
Expand Down
2 changes: 1 addition & 1 deletion _modules/pyirf/io/eventdisplay.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
pyirf
</a>
<div class="version">
0.10.2.dev4+gdbacc33
0.10.2.dev8+g5346e00
</div>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="../../../search.html" method="get">
Expand Down
2 changes: 1 addition & 1 deletion _modules/pyirf/io/gadf.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
pyirf
</a>
<div class="version">
0.10.2.dev4+gdbacc33
0.10.2.dev8+g5346e00
</div>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="../../../search.html" method="get">
Expand Down
2 changes: 1 addition & 1 deletion _modules/pyirf/irf/background.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
pyirf
</a>
<div class="version">
0.10.2.dev4+gdbacc33
0.10.2.dev8+g5346e00
</div>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="../../../search.html" method="get">
Expand Down
2 changes: 1 addition & 1 deletion _modules/pyirf/irf/effective_area.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
pyirf
</a>
<div class="version">
0.10.2.dev4+gdbacc33
0.10.2.dev8+g5346e00
</div>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="../../../search.html" method="get">
Expand Down
2 changes: 1 addition & 1 deletion _modules/pyirf/irf/energy_dispersion.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
pyirf
</a>
<div class="version">
0.10.2.dev4+gdbacc33
0.10.2.dev8+g5346e00
</div>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="../../../search.html" method="get">
Expand Down
2 changes: 1 addition & 1 deletion _modules/pyirf/irf/psf.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
pyirf
</a>
<div class="version">
0.10.2.dev4+gdbacc33
0.10.2.dev8+g5346e00
</div>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="../../../search.html" method="get">
Expand Down
2 changes: 1 addition & 1 deletion _modules/pyirf/sensitivity.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
pyirf
</a>
<div class="version">
0.10.2.dev4+gdbacc33
0.10.2.dev8+g5346e00
</div>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="../../search.html" method="get">
Expand Down
2 changes: 1 addition & 1 deletion _modules/pyirf/simulations.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
pyirf
</a>
<div class="version">
0.10.2.dev4+gdbacc33
0.10.2.dev8+g5346e00
</div>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="../../search.html" method="get">
Expand Down
2 changes: 1 addition & 1 deletion _modules/pyirf/spectral.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
pyirf
</a>
<div class="version">
0.10.2.dev4+gdbacc33
0.10.2.dev8+g5346e00
</div>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="../../search.html" method="get">
Expand Down
2 changes: 1 addition & 1 deletion _modules/pyirf/statistics.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
pyirf
</a>
<div class="version">
0.10.2.dev4+gdbacc33
0.10.2.dev8+g5346e00
</div>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="../../search.html" method="get">
Expand Down
2 changes: 1 addition & 1 deletion _modules/pyirf/utils.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
pyirf
</a>
<div class="version">
0.10.2.dev4+gdbacc33
0.10.2.dev8+g5346e00
</div>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="../../search.html" method="get">
Expand Down
2 changes: 1 addition & 1 deletion api/pyirf.benchmarks.angular_resolution.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
pyirf
</a>
<div class="version">
0.10.2.dev4+gdbacc33
0.10.2.dev8+g5346e00
</div>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="../search.html" method="get">
Expand Down
2 changes: 1 addition & 1 deletion api/pyirf.benchmarks.energy_bias_resolution.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
pyirf
</a>
<div class="version">
0.10.2.dev4+gdbacc33
0.10.2.dev8+g5346e00
</div>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="../search.html" method="get">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
pyirf
</a>
<div class="version">
0.10.2.dev4+gdbacc33
0.10.2.dev8+g5346e00
</div>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="../search.html" method="get">
Expand Down
2 changes: 1 addition & 1 deletion api/pyirf.binning.add_overflow_bins.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
pyirf
</a>
<div class="version">
0.10.2.dev4+gdbacc33
0.10.2.dev8+g5346e00
</div>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="../search.html" method="get">
Expand Down
2 changes: 1 addition & 1 deletion api/pyirf.binning.bin_center.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
pyirf
</a>
<div class="version">
0.10.2.dev4+gdbacc33
0.10.2.dev8+g5346e00
</div>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="../search.html" method="get">
Expand Down
2 changes: 1 addition & 1 deletion api/pyirf.binning.calculate_bin_indices.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
pyirf
</a>
<div class="version">
0.10.2.dev4+gdbacc33
0.10.2.dev8+g5346e00
</div>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="../search.html" method="get">
Expand Down
2 changes: 1 addition & 1 deletion api/pyirf.binning.create_bins_per_decade.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
pyirf
</a>
<div class="version">
0.10.2.dev4+gdbacc33
0.10.2.dev8+g5346e00
</div>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="../search.html" method="get">
Expand Down
2 changes: 1 addition & 1 deletion api/pyirf.binning.create_histogram_table.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
pyirf
</a>
<div class="version">
0.10.2.dev4+gdbacc33
0.10.2.dev8+g5346e00
</div>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="../search.html" method="get">
Expand Down
2 changes: 1 addition & 1 deletion api/pyirf.binning.join_bin_lo_hi.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
pyirf
</a>
<div class="version">
0.10.2.dev4+gdbacc33
0.10.2.dev8+g5346e00
</div>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="../search.html" method="get">
Expand Down
2 changes: 1 addition & 1 deletion api/pyirf.binning.resample_histogram1d.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
pyirf
</a>
<div class="version">
0.10.2.dev4+gdbacc33
0.10.2.dev8+g5346e00
</div>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="../search.html" method="get">
Expand Down
2 changes: 1 addition & 1 deletion api/pyirf.binning.split_bin_lo_hi.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
pyirf
</a>
<div class="version">
0.10.2.dev4+gdbacc33
0.10.2.dev8+g5346e00
</div>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="../search.html" method="get">
Expand Down
2 changes: 1 addition & 1 deletion api/pyirf.cut_optimization.optimize_gh_cut.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
pyirf
</a>
<div class="version">
0.10.2.dev4+gdbacc33
0.10.2.dev8+g5346e00
</div>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="../search.html" method="get">
Expand Down
2 changes: 1 addition & 1 deletion api/pyirf.cuts.calculate_percentile_cut.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
pyirf
</a>
<div class="version">
0.10.2.dev4+gdbacc33
0.10.2.dev8+g5346e00
</div>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="../search.html" method="get">
Expand Down
2 changes: 1 addition & 1 deletion api/pyirf.cuts.compare_irf_cuts.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
pyirf
</a>
<div class="version">
0.10.2.dev4+gdbacc33
0.10.2.dev8+g5346e00
</div>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="../search.html" method="get">
Expand Down
Loading

0 comments on commit 3ef2128

Please sign in to comment.