Skip to content

Commit

Permalink
Deploying to gh-pages from @ b686dd7 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
asogaard committed Jan 26, 2024
1 parent 9045ec1 commit 53c2890
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
7 changes: 6 additions & 1 deletion _modules/graphnet/deployment/i3modules/graphnet_module.html
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,7 @@ <h1 id="modules-graphnet-deployment-i3modules-graphnet-module--page-root">Source
<span class="kn">from</span> <span class="nn">graphnet.models.graphs</span> <span class="kn">import</span> <span class="n">GraphDefinition</span>
<span class="kn">from</span> <span class="nn">graphnet.utilities.imports</span> <span class="kn">import</span> <span class="n">has_icecube_package</span>
<span class="kn">from</span> <span class="nn">graphnet.utilities.config</span> <span class="kn">import</span> <span class="n">ModelConfig</span>
<span class="kn">from</span> <span class="nn">graphnet.utilities.logging</span> <span class="kn">import</span> <span class="n">Logger</span>

<span class="k">if</span> <span class="n">has_icecube_package</span><span class="p">()</span> <span class="ow">or</span> <span class="n">TYPE_CHECKING</span><span class="p">:</span>
<span class="kn">from</span> <span class="nn">icecube.icetray</span> <span class="kn">import</span> <span class="p">(</span>
Expand All @@ -354,7 +355,7 @@ <h1 id="modules-graphnet-deployment-i3modules-graphnet-module--page-root">Source

<div class="viewcode-block" id="GraphNeTI3Module">
<a class="viewcode-back" href="../../../../api/graphnet.deployment.i3modules.graphnet_module.html#graphnet.deployment.i3modules.graphnet_module.GraphNeTI3Module">[docs]</a>
<span class="k">class</span> <span class="nc">GraphNeTI3Module</span><span class="p">:</span>
<span class="k">class</span> <span class="nc">GraphNeTI3Module</span><span class="p">(</span><span class="n">Logger</span><span class="p">):</span>
<span class="w"> </span><span class="sd">"""Base I3 Module for GraphNeT.</span>

<span class="sd"> Contains methods for extracting pulsemaps, producing graphs and writing to</span>
Expand Down Expand Up @@ -382,6 +383,7 @@ <h1 id="modules-graphnet-deployment-i3modules-graphnet-module--page-root">Source
<span class="sd"> pulsemap from the I3Frames</span>
<span class="sd"> gcd_file: Path to the associated gcd-file.</span>
<span class="sd"> """</span>
<span class="nb">super</span><span class="p">()</span><span class="o">.</span><span class="fm">__init__</span><span class="p">(</span><span class="n">name</span><span class="o">=</span><span class="vm">__name__</span><span class="p">,</span> <span class="n">class_name</span><span class="o">=</span><span class="bp">self</span><span class="o">.</span><span class="vm">__class__</span><span class="o">.</span><span class="vm">__name__</span><span class="p">)</span>
<span class="k">assert</span> <span class="nb">isinstance</span><span class="p">(</span><span class="n">graph_definition</span><span class="p">,</span> <span class="n">GraphDefinition</span><span class="p">)</span>
<span class="bp">self</span><span class="o">.</span><span class="n">_graph_definition</span> <span class="o">=</span> <span class="n">graph_definition</span>
<span class="bp">self</span><span class="o">.</span><span class="n">_pulsemap</span> <span class="o">=</span> <span class="n">pulsemap</span>
Expand Down Expand Up @@ -529,6 +531,9 @@ <h1 id="modules-graphnet-deployment-i3modules-graphnet-module--page-root">Source
<span class="k">if</span> <span class="n">graph</span> <span class="ow">is</span> <span class="ow">not</span> <span class="kc">None</span><span class="p">:</span>
<span class="n">predictions</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">_inference</span><span class="p">(</span><span class="n">graph</span><span class="p">)</span>
<span class="k">else</span><span class="p">:</span>
<span class="bp">self</span><span class="o">.</span><span class="n">warning</span><span class="p">(</span>
<span class="sa">f</span><span class="s2">"At least one event has no pulses in </span><span class="si">{</span><span class="bp">self</span><span class="o">.</span><span class="n">_pulsemap</span><span class="si">}</span><span class="s2"> - padding </span><span class="si">{</span><span class="bp">self</span><span class="o">.</span><span class="n">prediction_columns</span><span class="si">}</span><span class="s2"> with NaN."</span>
<span class="p">)</span>
<span class="n">predictions</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">repeat</span><span class="p">(</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="nb">len</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">prediction_columns</span><span class="p">)</span>
<span class="p">)</span><span class="o">.</span><span class="n">reshape</span><span class="p">(</span><span class="o">-</span><span class="mi">1</span><span class="p">,</span> <span class="nb">len</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">prediction_columns</span><span class="p">))</span>
Expand Down
2 changes: 1 addition & 1 deletion api/graphnet.deployment.i3modules.graphnet_module.html
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@
<dl class="py class">
<dt class="sig sig-object py" id="graphnet.deployment.i3modules.graphnet_module.GraphNeTI3Module">
<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">graphnet.deployment.i3modules.graphnet_module.</span></span><span class="sig-name descname"><span class="pre">GraphNeTI3Module</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">graph_definition</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">pulsemap</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">features</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">pulsemap_extractor</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">gcd_file</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/graphnet/deployment/i3modules/graphnet_module.html#GraphNeTI3Module"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#graphnet.deployment.i3modules.graphnet_module.GraphNeTI3Module" title="Link to this definition"></a></dt>
<dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">object</span></code></p>
<dd><p>Bases: <a class="reference internal" href="graphnet.utilities.logging.html#graphnet.utilities.logging.Logger" title="graphnet.utilities.logging.Logger"><code class="xref py py-class docutils literal notranslate"><span class="pre">Logger</span></code></a></p>
<p>Base I3 Module for GraphNeT.</p>
<p>Contains methods for extracting pulsemaps, producing graphs and writing to
frames.</p>
Expand Down
2 changes: 1 addition & 1 deletion searchindex.js

Large diffs are not rendered by default.

0 comments on commit 53c2890

Please sign in to comment.