Skip to content

Commit

Permalink
Deploying to gh-pages from @ f0d242d 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
asogaard committed Dec 3, 2023
1 parent 82dcb85 commit 5728e5f
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions _modules/graphnet/models/graphs/graph_definition.html
Original file line number Diff line number Diff line change
Expand Up @@ -406,11 +406,6 @@ <h1 id="modules-graphnet-models-graphs-graph-definition--page-root">Source code

<span class="bp">self</span><span class="o">.</span><span class="n">_resolve_masks</span><span class="p">()</span>

<span class="k">if</span> <span class="bp">self</span><span class="o">.</span><span class="n">_edge_definition</span> <span class="ow">is</span> <span class="kc">None</span><span class="p">:</span>
<span class="bp">self</span><span class="o">.</span><span class="n">warning_once</span><span class="p">(</span>
<span class="w"> </span><span class="sd">"""No EdgeDefinition given. Graphs will not have edges!"""</span>
<span class="p">)</span>

<span class="k">if</span> <span class="n">input_feature_names</span> <span class="ow">is</span> <span class="kc">None</span><span class="p">:</span>
<span class="c1"># Assume all features in Detector is used.</span>
<span class="n">input_feature_names</span> <span class="o">=</span> <span class="nb">list</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">_detector</span><span class="o">.</span><span class="n">feature_map</span><span class="p">()</span><span class="o">.</span><span class="n">keys</span><span class="p">())</span> <span class="c1"># type: ignore</span>
Expand Down Expand Up @@ -533,6 +528,12 @@ <h1 id="modules-graphnet-models-graphs-graph-definition--page-root">Source code
<span class="c1"># Assign edges</span>
<span class="k">if</span> <span class="bp">self</span><span class="o">.</span><span class="n">_edge_definition</span> <span class="ow">is</span> <span class="ow">not</span> <span class="kc">None</span><span class="p">:</span>
<span class="n">graph</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">_edge_definition</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_once</span><span class="p">(</span>
<span class="w"> </span><span class="sd">"""No EdgeDefinition provided. </span>
<span class="sd"> Graphs will not have edges defined!"""</span> <span class="c1"># noqa</span>
<span class="p">)</span>

<span class="c1"># Attach data path - useful for Ensemble datasets.</span>
<span class="k">if</span> <span class="n">data_path</span> <span class="ow">is</span> <span class="ow">not</span> <span class="kc">None</span><span class="p">:</span>
Expand Down

0 comments on commit 5728e5f

Please sign in to comment.