Skip to content

Commit

Permalink
Generated gh-pages for commit b9ab98d
Browse files Browse the repository at this point in the history
Author: Jens Hedegaard Nielsen <jenshnielsen@gmail.com>

    Build docs with warnings as errors (#882)
  • Loading branch information
Documentation Bot committed Dec 6, 2017
1 parent f5924ec commit 4f6f357
Show file tree
Hide file tree
Showing 176 changed files with 1,660 additions and 1,540 deletions.
Binary file added _images/Qcodes_example_with_AMI430_6_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _images/Qcodes_example_with_HP8753D_9_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 12 additions & 12 deletions _modules/qcodes/actions.html
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,8 @@ <h1>Source code for qcodes.actions</h1><div class="highlight"><pre>
<span class="sd"> &quot;&quot;&quot;</span>
<div class="viewcode-block" id="Task.__init__"><a class="viewcode-back" href="../../api/generated/qcodes.Task.html#qcodes.Task.__init__">[docs]</a> <span class="k">def</span> <span class="nf">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">func</span><span class="p">,</span> <span class="o">*</span><span class="n">args</span><span class="p">,</span> <span class="o">**</span><span class="n">kwargs</span><span class="p">):</span>
<span class="bp">self</span><span class="o">.</span><span class="n">func</span> <span class="o">=</span> <span class="n">func</span>
<span class="bp">self</span><span class="o">.</span><span class="n">args</span> <span class="o">=</span> <span class="n">args</span>
<span class="bp">self</span><span class="o">.</span><span class="n">kwargs</span> <span class="o">=</span> <span class="n">kwargs</span></div>
<span class="bp">self</span><span class="o">.</span><span class="n">args</span> <span class="o">=</span> <span class="n">args</span></div>
<span class="bp">self</span><span class="o">.</span><span class="n">kwargs</span> <span class="o">=</span> <span class="n">kwargs</span>

<span class="k">def</span> <span class="nf">__call__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="o">**</span><span class="n">ignore_kwargs</span><span class="p">):</span>
<span class="c1"># If any of the arguments are callable, evaluate them first</span>
Expand All @@ -228,8 +228,8 @@ <h1>Source code for qcodes.actions</h1><div class="highlight"><pre>

<span class="sd"> Returns:</span>
<span class="sd"> dict: snapshot</span>
<span class="sd"> &quot;&quot;&quot;</span>
<span class="k">return</span> <span class="p">{</span><span class="s1">&#39;type&#39;</span><span class="p">:</span> <span class="s1">&#39;Task&#39;</span><span class="p">,</span> <span class="s1">&#39;func&#39;</span><span class="p">:</span> <span class="nb">repr</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">func</span><span class="p">)}</span></div>
<span class="sd"> &quot;&quot;&quot;</span></div>
<span class="k">return</span> <span class="p">{</span><span class="s1">&#39;type&#39;</span><span class="p">:</span> <span class="s1">&#39;Task&#39;</span><span class="p">,</span> <span class="s1">&#39;func&#39;</span><span class="p">:</span> <span class="nb">repr</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">func</span><span class="p">)}</span>


<div class="viewcode-block" id="Wait"><a class="viewcode-back" href="../../api/generated/qcodes.Wait.html#qcodes.Wait">[docs]</a><span class="k">class</span> <span class="nc">Wait</span><span class="p">:</span>
Expand All @@ -249,8 +249,8 @@ <h1>Source code for qcodes.actions</h1><div class="highlight"><pre>
<span class="sd"> &quot;&quot;&quot;</span>
<div class="viewcode-block" id="Wait.__init__"><a class="viewcode-back" href="../../api/generated/qcodes.Wait.html#qcodes.Wait.__init__">[docs]</a> <span class="k">def</span> <span class="nf">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">delay</span><span class="p">):</span>
<span class="k">if</span> <span class="ow">not</span> <span class="n">delay</span> <span class="o">&gt;=</span> <span class="mi">0</span><span class="p">:</span>
<span class="k">raise</span> <span class="ne">ValueError</span><span class="p">(</span><span class="s1">&#39;delay must be &gt; 0, not </span><span class="si">{}</span><span class="s1">&#39;</span><span class="o">.</span><span class="n">format</span><span class="p">(</span><span class="nb">repr</span><span class="p">(</span><span class="n">delay</span><span class="p">)))</span>
<span class="bp">self</span><span class="o">.</span><span class="n">delay</span> <span class="o">=</span> <span class="n">delay</span></div>
<span class="k">raise</span> <span class="ne">ValueError</span><span class="p">(</span><span class="s1">&#39;delay must be &gt; 0, not </span><span class="si">{}</span><span class="s1">&#39;</span><span class="o">.</span><span class="n">format</span><span class="p">(</span><span class="nb">repr</span><span class="p">(</span><span class="n">delay</span><span class="p">)))</span></div>
<span class="bp">self</span><span class="o">.</span><span class="n">delay</span> <span class="o">=</span> <span class="n">delay</span>

<span class="k">def</span> <span class="nf">__call__</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
<span class="k">if</span> <span class="bp">self</span><span class="o">.</span><span class="n">delay</span><span class="p">:</span>
Expand All @@ -264,8 +264,8 @@ <h1>Source code for qcodes.actions</h1><div class="highlight"><pre>

<span class="sd"> Returns:</span>
<span class="sd"> dict: snapshot</span>
<span class="sd"> &quot;&quot;&quot;</span>
<span class="k">return</span> <span class="p">{</span><span class="s1">&#39;type&#39;</span><span class="p">:</span> <span class="s1">&#39;Wait&#39;</span><span class="p">,</span> <span class="s1">&#39;delay&#39;</span><span class="p">:</span> <span class="bp">self</span><span class="o">.</span><span class="n">delay</span><span class="p">}</span></div>
<span class="sd"> &quot;&quot;&quot;</span></div>
<span class="k">return</span> <span class="p">{</span><span class="s1">&#39;type&#39;</span><span class="p">:</span> <span class="s1">&#39;Wait&#39;</span><span class="p">,</span> <span class="s1">&#39;delay&#39;</span><span class="p">:</span> <span class="bp">self</span><span class="o">.</span><span class="n">delay</span><span class="p">}</span>


<span class="k">class</span> <span class="nc">_Measure</span><span class="p">:</span>
Expand Down Expand Up @@ -368,8 +368,8 @@ <h1>Source code for qcodes.actions</h1><div class="highlight"><pre>
<div class="viewcode-block" id="BreakIf.__init__"><a class="viewcode-back" href="../../api/generated/qcodes.BreakIf.html#qcodes.BreakIf.__init__">[docs]</a> <span class="k">def</span> <span class="nf">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">condition</span><span class="p">):</span>
<span class="k">if</span> <span class="ow">not</span> <span class="n">is_function</span><span class="p">(</span><span class="n">condition</span><span class="p">,</span> <span class="mi">0</span><span class="p">):</span>
<span class="k">raise</span> <span class="ne">TypeError</span><span class="p">(</span><span class="s1">&#39;BreakIf condition must be a callable with &#39;</span>
<span class="s1">&#39;no arguments&#39;</span><span class="p">)</span>
<span class="bp">self</span><span class="o">.</span><span class="n">condition</span> <span class="o">=</span> <span class="n">condition</span></div>
<span class="s1">&#39;no arguments&#39;</span><span class="p">)</span></div>
<span class="bp">self</span><span class="o">.</span><span class="n">condition</span> <span class="o">=</span> <span class="n">condition</span>

<span class="k">def</span> <span class="nf">__call__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="o">**</span><span class="n">ignore_kwargs</span><span class="p">):</span>
<span class="k">if</span> <span class="bp">self</span><span class="o">.</span><span class="n">condition</span><span class="p">():</span>
Expand All @@ -385,8 +385,8 @@ <h1>Source code for qcodes.actions</h1><div class="highlight"><pre>
<span class="sd"> Returns:</span>
<span class="sd"> dict: snapshot</span>

<span class="sd"> &quot;&quot;&quot;</span>
<span class="k">return</span> <span class="p">{</span><span class="s1">&#39;type&#39;</span><span class="p">:</span> <span class="s1">&#39;BreakIf&#39;</span><span class="p">,</span> <span class="s1">&#39;condition&#39;</span><span class="p">:</span> <span class="nb">repr</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">condition</span><span class="p">)}</span></div>
<span class="sd"> &quot;&quot;&quot;</span></div>
<span class="k">return</span> <span class="p">{</span><span class="s1">&#39;type&#39;</span><span class="p">:</span> <span class="s1">&#39;BreakIf&#39;</span><span class="p">,</span> <span class="s1">&#39;condition&#39;</span><span class="p">:</span> <span class="nb">repr</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">condition</span><span class="p">)}</span>


<span class="k">class</span> <span class="nc">_QcodesBreak</span><span class="p">(</span><span class="ne">Exception</span><span class="p">):</span>
Expand Down
8 changes: 4 additions & 4 deletions _modules/qcodes/config/config.html
Original file line number Diff line number Diff line change
Expand Up @@ -256,8 +256,8 @@ <h1>Source code for qcodes.config.config</h1><div class="highlight"><pre>
<span class="n">_diff_schema</span> <span class="o">=</span> <span class="p">{}</span>

<div class="viewcode-block" id="Config.__init__"><a class="viewcode-back" href="../../../api/generated/qcodes.Config.html#qcodes.Config.__init__">[docs]</a> <span class="k">def</span> <span class="nf">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
<span class="bp">self</span><span class="o">.</span><span class="n">defaults</span><span class="p">,</span> <span class="bp">self</span><span class="o">.</span><span class="n">defaults_schema</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">load_default</span><span class="p">()</span>
<span class="bp">self</span><span class="o">.</span><span class="n">current_config</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">update_config</span><span class="p">()</span></div>
<span class="bp">self</span><span class="o">.</span><span class="n">defaults</span><span class="p">,</span> <span class="bp">self</span><span class="o">.</span><span class="n">defaults_schema</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">load_default</span><span class="p">()</span></div>
<span class="bp">self</span><span class="o">.</span><span class="n">current_config</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">update_config</span><span class="p">()</span>

<span class="k">def</span> <span class="nf">load_default</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
<span class="n">defaults</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">load_config</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">default_file_name</span><span class="p">)</span>
Expand Down Expand Up @@ -517,8 +517,8 @@ <h1>Source code for qcodes.config.config</h1><div class="highlight"><pre>

<span class="k">def</span> <span class="nf">__repr__</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
<span class="n">old</span> <span class="o">=</span> <span class="nb">super</span><span class="p">()</span><span class="o">.</span><span class="fm">__repr__</span><span class="p">()</span>
<span class="n">base</span> <span class="o">=</span> <span class="s2">&quot;&quot;&quot;Current values: </span><span class="se">\n</span><span class="s2"> </span><span class="si">{}</span><span class="s2"> </span><span class="se">\n</span><span class="s2"> Current path: </span><span class="se">\n</span><span class="s2"> </span><span class="si">{}</span><span class="s2"> </span><span class="se">\n</span><span class="s2"> </span><span class="si">{}</span><span class="s2">&quot;&quot;&quot;</span>
<span class="k">return</span> <span class="n">base</span><span class="o">.</span><span class="n">format</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">current_config</span><span class="p">,</span> <span class="bp">self</span><span class="o">.</span><span class="n">current_config_path</span><span class="p">,</span> <span class="n">old</span><span class="p">)</span></div>
<span class="n">base</span> <span class="o">=</span> <span class="s2">&quot;&quot;&quot;Current values: </span><span class="se">\n</span><span class="s2"> </span><span class="si">{}</span><span class="s2"> </span><span class="se">\n</span><span class="s2"> Current path: </span><span class="se">\n</span><span class="s2"> </span><span class="si">{}</span><span class="s2"> </span><span class="se">\n</span><span class="s2"> </span><span class="si">{}</span><span class="s2">&quot;&quot;&quot;</span></div>
<span class="k">return</span> <span class="n">base</span><span class="o">.</span><span class="n">format</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">current_config</span><span class="p">,</span> <span class="bp">self</span><span class="o">.</span><span class="n">current_config_path</span><span class="p">,</span> <span class="n">old</span><span class="p">)</span>


<span class="k">class</span> <span class="nc">DotDict</span><span class="p">(</span><span class="nb">dict</span><span class="p">):</span>
Expand Down
8 changes: 4 additions & 4 deletions _modules/qcodes/data/data_array.html
Original file line number Diff line number Diff line change
Expand Up @@ -332,8 +332,8 @@ <h1>Source code for qcodes.data.data_array</h1><div class="highlight"><pre>

<span class="k">if</span> <span class="n">preset_data</span> <span class="ow">is</span> <span class="ow">not</span> <span class="kc">None</span><span class="p">:</span>
<span class="bp">self</span><span class="o">.</span><span class="n">init_data</span><span class="p">(</span><span class="n">preset_data</span><span class="p">)</span>
<span class="k">elif</span> <span class="n">shape</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">shape</span> <span class="o">=</span> <span class="p">()</span></div>
<span class="k">elif</span> <span class="n">shape</span> <span class="ow">is</span> <span class="kc">None</span><span class="p">:</span></div>
<span class="bp">self</span><span class="o">.</span><span class="n">shape</span> <span class="o">=</span> <span class="p">()</span>

<span class="nd">@property</span>
<span class="k">def</span> <span class="nf">data_set</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
Expand Down Expand Up @@ -692,8 +692,8 @@ <h1>Source code for qcodes.data.data_array</h1><div class="highlight"><pre>

<span class="nd">@property</span>
<span class="k">def</span> <span class="nf">units</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
<span class="n">warn_units</span><span class="p">(</span><span class="s1">&#39;DataArray&#39;</span><span class="p">,</span> <span class="bp">self</span><span class="p">)</span>
<span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">unit</span></div>
<span class="n">warn_units</span><span class="p">(</span><span class="s1">&#39;DataArray&#39;</span><span class="p">,</span> <span class="bp">self</span><span class="p">)</span></div>
<span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">unit</span>
</pre></div>

</div>
Expand Down
Loading

0 comments on commit 4f6f357

Please sign in to comment.