Skip to content

Commit

Permalink
htdocs update (master)
Browse files Browse the repository at this point in the history
  • Loading branch information
DiamondLightSource-build-server committed Apr 30, 2024
1 parent 3523e90 commit 3682008
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions _modules/dxtbx/model/goniometer.html
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,10 @@ <h1>Source code for dxtbx.model.goniometer</h1><div class="highlight"><pre>
<span class="k">raise</span> <span class="ne">ValueError</span><span class="p">(</span><span class="s2">&quot;Only one of axis or axes should be set&quot;</span><span class="p">)</span>
<span class="k">if</span> <span class="n">reference</span> <span class="ow">is</span> <span class="ow">not</span> <span class="kc">None</span><span class="p">:</span>
<span class="k">if</span> <span class="nb">isinstance</span><span class="p">(</span><span class="n">reference</span><span class="p">,</span> <span class="n">MultiAxisGoniometer</span><span class="p">):</span>
<span class="k">if</span> <span class="n">params</span><span class="o">.</span><span class="n">goniometer</span><span class="o">.</span><span class="n">axis</span><span class="p">:</span>
<span class="k">raise</span> <span class="ne">ValueError</span><span class="p">(</span>
<span class="s2">&quot;All axes must be set for a multi-axis goniometer, not just axis&quot;</span>
<span class="p">)</span>
<span class="n">goniometer</span> <span class="o">=</span> <span class="n">GoniometerFactory</span><span class="o">.</span><span class="n">multi_axis_goniometer_from_phil</span><span class="p">(</span>
<span class="n">params</span><span class="p">,</span> <span class="n">reference</span>
<span class="p">)</span>
Expand Down

0 comments on commit 3682008

Please sign in to comment.