Skip to content

Commit

Permalink
Deploy to GitHub pages
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored Apr 30, 2024
1 parent 55e8664 commit 02176f9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Binary file modified latest/.doctrees/environment.pickle
Binary file not shown.
9 changes: 8 additions & 1 deletion latest/_modules/compas_wood/binding/binding_globals.html
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@ <h1>Source code for compas_wood.binding.binding_globals</h1><div class="highligh
<span></span><span class="kn">from</span> <span class="nn">wood_nano</span> <span class="kn">import</span> <span class="n">GLOBALS</span>


<div class="viewcode-block" id="Globals"><a class="viewcode-back" href="../../../api/compas_wood.binding.html#compas_wood.binding.Globals">[docs]</a><span class="k">class</span> <span class="nc">Globals</span><span class="p">:</span>
<div class="viewcode-block" id="Globals"><a class="viewcode-back" href="../../../api/compas_wood.binding.html#compas_wood.binding.Globals">[docs]</a><span class="k">class</span> <span class="nc">Globals</span><span class="p">(</span><span class="nb">object</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Class to access global variables of the wood_nano library using class instance wood_globals:</span>

<span class="sd"> &gt;&gt;&gt; from compas_wood.binding import wood_globals</span>
Expand Down Expand Up @@ -668,6 +668,13 @@ <h1>Source code for compas_wood.binding.binding_globals</h1><div class="highligh

<span class="sd"> &quot;&quot;&quot;</span>

<span class="k">def</span> <span class="fm">__new__</span><span class="p">(</span><span class="bp">cls</span><span class="p">):</span>

<span class="k">if</span> <span class="ow">not</span> <span class="nb">hasattr</span><span class="p">(</span><span class="bp">cls</span><span class="p">,</span> <span class="s2">&quot;instance&quot;</span><span class="p">):</span>
<span class="bp">cls</span><span class="o">.</span><span class="n">instance</span> <span class="o">=</span> <span class="nb">super</span><span class="p">(</span><span class="n">Globals</span><span class="p">,</span> <span class="bp">cls</span><span class="p">)</span><span class="o">.</span><span class="fm">__new__</span><span class="p">(</span><span class="bp">cls</span><span class="p">)</span>

<span class="k">return</span> <span class="bp">cls</span><span class="o">.</span><span class="n">instance</span>

<span class="nd">@property</span>
<span class="k">def</span> <span class="nf">clipper_scale</span><span class="p">(</span><span class="bp">cls</span><span class="p">):</span>
<span class="k">return</span> <span class="n">GLOBALS</span><span class="o">.</span><span class="n">CLIPPER_SCALE</span>
Expand Down

0 comments on commit 02176f9

Please sign in to comment.