Skip to content

Commit

Permalink
deploy: ff71ada
Browse files Browse the repository at this point in the history
  • Loading branch information
adigitoleo committed Aug 1, 2024
1 parent 3290dfb commit fb3d318
Show file tree
Hide file tree
Showing 5 changed files with 2,769 additions and 2,752 deletions.
6 changes: 3 additions & 3 deletions pydrex/io.html
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,7 @@ <h1 class="modulename">
</span><span id="L-425"><a href="#L-425"><span class="linenos">425</span></a> <span class="sa">f</span><span class="s2">&quot;invalid data for column &#39;</span><span class="si">{</span><span class="n">names</span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="si">}</span><span class="s2">&#39;.&quot;</span>
</span><span id="L-426"><a href="#L-426"><span class="linenos">426</span></a> <span class="o">+</span> <span class="sa">f</span><span class="s2">&quot; Cannot parse </span><span class="si">{</span><span class="n">d</span><span class="si">}</span><span class="s2"> as type &#39;</span><span class="si">{</span><span class="n">t</span><span class="o">.</span><span class="vm">__qualname__</span><span class="si">}</span><span class="s2">&#39;.&quot;</span>
</span><span id="L-427"><a href="#L-427"><span class="linenos">427</span></a> <span class="p">)</span> <span class="kn">from</span> <span class="kc">None</span>
</span><span id="L-428"><a href="#L-428"><span class="linenos">428</span></a> <span class="k">if</span> <span class="n">t</span> <span class="o">==</span> <span class="nb">bool</span><span class="p">:</span>
</span><span id="L-428"><a href="#L-428"><span class="linenos">428</span></a> <span class="k">if</span> <span class="nb">isinstance</span><span class="p">(</span><span class="n">t</span><span class="p">,</span> <span class="nb">bool</span><span class="p">):</span>
</span><span id="L-429"><a href="#L-429"><span class="linenos">429</span></a> <span class="n">row</span><span class="o">.</span><span class="n">append</span><span class="p">(</span><span class="n">d</span><span class="p">)</span>
</span><span id="L-430"><a href="#L-430"><span class="linenos">430</span></a> <span class="k">elif</span> <span class="n">t</span> <span class="ow">in</span> <span class="p">(</span><span class="nb">float</span><span class="p">,</span> <span class="nb">complex</span><span class="p">):</span>
</span><span id="L-431"><a href="#L-431"><span class="linenos">431</span></a> <span class="k">if</span> <span class="n">np</span><span class="o">.</span><span class="n">isnan</span><span class="p">(</span><span class="n">d</span><span class="p">)</span> <span class="ow">and</span> <span class="n">np</span><span class="o">.</span><span class="n">isnan</span><span class="p">(</span><span class="n">t</span><span class="p">(</span><span class="n">f</span><span class="p">)):</span>
Expand Down Expand Up @@ -874,7 +874,7 @@ <h1 class="modulename">
</span><span id="L-747"><a href="#L-747"><span class="linenos">747</span></a> <span class="k">if</span> <span class="n">fillval</span> <span class="o">==</span> <span class="s2">&quot;NaN&quot;</span><span class="p">:</span>
</span><span id="L-748"><a href="#L-748"><span class="linenos">748</span></a> <span class="k">return</span> <span class="n">func</span><span class="p">(</span><span class="n">np</span><span class="o">.</span><span class="n">nan</span><span class="p">)</span>
</span><span id="L-749"><a href="#L-749"><span class="linenos">749</span></a> <span class="k">return</span> <span class="n">func</span><span class="p">(</span><span class="n">fillval</span><span class="p">)</span>
</span><span id="L-750"><a href="#L-750"><span class="linenos">750</span></a> <span class="k">elif</span> <span class="n">func</span> <span class="o">==</span> <span class="nb">bool</span><span class="p">:</span>
</span><span id="L-750"><a href="#L-750"><span class="linenos">750</span></a> <span class="k">elif</span> <span class="n">func</span><span class="o">.</span><span class="vm">__qualname__</span> <span class="o">==</span> <span class="s2">&quot;bool&quot;</span><span class="p">:</span>
</span><span id="L-751"><a href="#L-751"><span class="linenos">751</span></a> <span class="k">return</span> <span class="n">_parse_scsv_bool</span><span class="p">(</span><span class="n">data</span><span class="p">)</span>
</span><span id="L-752"><a href="#L-752"><span class="linenos">752</span></a> <span class="k">return</span> <span class="n">func</span><span class="p">(</span><span class="n">data</span><span class="o">.</span><span class="n">strip</span><span class="p">())</span>
</span><span id="L-753"><a href="#L-753"><span class="linenos">753</span></a>
Expand Down Expand Up @@ -1438,7 +1438,7 @@ <h6 id="this-function-is-only-defined-if-the-version-of-your-python-interpreter-
</span><span id="save_scsv-426"><a href="#save_scsv-426"><span class="linenos">426</span></a> <span class="sa">f</span><span class="s2">&quot;invalid data for column &#39;</span><span class="si">{</span><span class="n">names</span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="si">}</span><span class="s2">&#39;.&quot;</span>
</span><span id="save_scsv-427"><a href="#save_scsv-427"><span class="linenos">427</span></a> <span class="o">+</span> <span class="sa">f</span><span class="s2">&quot; Cannot parse </span><span class="si">{</span><span class="n">d</span><span class="si">}</span><span class="s2"> as type &#39;</span><span class="si">{</span><span class="n">t</span><span class="o">.</span><span class="vm">__qualname__</span><span class="si">}</span><span class="s2">&#39;.&quot;</span>
</span><span id="save_scsv-428"><a href="#save_scsv-428"><span class="linenos">428</span></a> <span class="p">)</span> <span class="kn">from</span> <span class="kc">None</span>
</span><span id="save_scsv-429"><a href="#save_scsv-429"><span class="linenos">429</span></a> <span class="k">if</span> <span class="n">t</span> <span class="o">==</span> <span class="nb">bool</span><span class="p">:</span>
</span><span id="save_scsv-429"><a href="#save_scsv-429"><span class="linenos">429</span></a> <span class="k">if</span> <span class="nb">isinstance</span><span class="p">(</span><span class="n">t</span><span class="p">,</span> <span class="nb">bool</span><span class="p">):</span>
</span><span id="save_scsv-430"><a href="#save_scsv-430"><span class="linenos">430</span></a> <span class="n">row</span><span class="o">.</span><span class="n">append</span><span class="p">(</span><span class="n">d</span><span class="p">)</span>
</span><span id="save_scsv-431"><a href="#save_scsv-431"><span class="linenos">431</span></a> <span class="k">elif</span> <span class="n">t</span> <span class="ow">in</span> <span class="p">(</span><span class="nb">float</span><span class="p">,</span> <span class="nb">complex</span><span class="p">):</span>
</span><span id="save_scsv-432"><a href="#save_scsv-432"><span class="linenos">432</span></a> <span class="k">if</span> <span class="n">np</span><span class="o">.</span><span class="n">isnan</span><span class="p">(</span><span class="n">d</span><span class="p">)</span> <span class="ow">and</span> <span class="n">np</span><span class="o">.</span><span class="n">isnan</span><span class="p">(</span><span class="n">t</span><span class="p">(</span><span class="n">f</span><span class="p">)):</span>
Expand Down
4 changes: 2 additions & 2 deletions tests/conftest.html
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ <h1 class="modulename">
</span><span id="L-159"><a href="#L-159"><span class="linenos">159</span></a> <span class="k">if</span> <span class="n">sys</span><span class="o">.</span><span class="n">platform</span> <span class="o">==</span> <span class="s2">&quot;win32&quot;</span><span class="p">:</span>
</span><span id="L-160"><a href="#L-160"><span class="linenos">160</span></a> <span class="k">return</span> <span class="p">{</span><span class="s2">&quot;delete&quot;</span><span class="p">:</span> <span class="kc">False</span><span class="p">}</span>
</span><span id="L-161"><a href="#L-161"><span class="linenos">161</span></a> <span class="k">else</span><span class="p">:</span>
</span><span id="L-162"><a href="#L-162"><span class="linenos">162</span></a> <span class="k">return</span> <span class="nb">dict</span><span class="p">()</span>
</span><span id="L-162"><a href="#L-162"><span class="linenos">162</span></a> <span class="k">return</span> <span class="p">{}</span>
</span><span id="L-163"><a href="#L-163"><span class="linenos">163</span></a>
</span><span id="L-164"><a href="#L-164"><span class="linenos">164</span></a>
</span><span id="L-165"><a href="#L-165"><span class="linenos">165</span></a><span class="nd">@pytest</span><span class="o">.</span><span class="n">fixture</span><span class="p">(</span><span class="n">scope</span><span class="o">=</span><span class="s2">&quot;session&quot;</span><span class="p">)</span>
Expand Down Expand Up @@ -801,7 +801,7 @@ <h5>Inherited Members</h5>
</span><span id="named_tempfile_kwargs-160"><a href="#named_tempfile_kwargs-160"><span class="linenos">160</span></a> <span class="k">if</span> <span class="n">sys</span><span class="o">.</span><span class="n">platform</span> <span class="o">==</span> <span class="s2">&quot;win32&quot;</span><span class="p">:</span>
</span><span id="named_tempfile_kwargs-161"><a href="#named_tempfile_kwargs-161"><span class="linenos">161</span></a> <span class="k">return</span> <span class="p">{</span><span class="s2">&quot;delete&quot;</span><span class="p">:</span> <span class="kc">False</span><span class="p">}</span>
</span><span id="named_tempfile_kwargs-162"><a href="#named_tempfile_kwargs-162"><span class="linenos">162</span></a> <span class="k">else</span><span class="p">:</span>
</span><span id="named_tempfile_kwargs-163"><a href="#named_tempfile_kwargs-163"><span class="linenos">163</span></a> <span class="k">return</span> <span class="nb">dict</span><span class="p">()</span>
</span><span id="named_tempfile_kwargs-163"><a href="#named_tempfile_kwargs-163"><span class="linenos">163</span></a> <span class="k">return</span> <span class="p">{}</span>
</span></pre></div>


Expand Down
8 changes: 4 additions & 4 deletions tests/test_doctests.html
Original file line number Diff line number Diff line change
Expand Up @@ -137,12 +137,12 @@ <h1 class="modulename">
</span><span id="L-57"><a href="#L-57"><span class="linenos">57</span></a> <span class="k">else</span><span class="p">:</span>
</span><span id="L-58"><a href="#L-58"><span class="linenos">58</span></a> <span class="n">lineno</span> <span class="o">=</span> <span class="sa">f</span><span class="s2">&quot;:</span><span class="si">{</span><span class="n">e</span><span class="o">.</span><span class="n">test</span><span class="o">.</span><span class="n">lineno</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="mi">1</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">e</span><span class="o">.</span><span class="n">example</span><span class="o">.</span><span class="n">lineno</span><span class="si">}</span><span class="s2">&quot;</span>
</span><span id="L-59"><a href="#L-59"><span class="linenos">59</span></a> <span class="n">err_type</span><span class="p">,</span> <span class="n">err</span><span class="p">,</span> <span class="n">_</span> <span class="o">=</span> <span class="n">e</span><span class="o">.</span><span class="n">exc_info</span>
</span><span id="L-60"><a href="#L-60"><span class="linenos">60</span></a> <span class="k">if</span> <span class="n">err_type</span> <span class="o">==</span> <span class="ne">NameError</span><span class="p">:</span> <span class="c1"># Raised on missing optional functions.</span>
</span><span id="L-60"><a href="#L-60"><span class="linenos">60</span></a> <span class="k">if</span> <span class="n">err_type</span> <span class="ow">is</span> <span class="ne">NameError</span><span class="p">:</span> <span class="c1"># Raised on missing optional functions.</span>
</span><span id="L-61"><a href="#L-61"><span class="linenos">61</span></a> <span class="c1"># Issue warning but let the test suite pass.</span>
</span><span id="L-62"><a href="#L-62"><span class="linenos">62</span></a> <span class="n">_log</span><span class="o">.</span><span class="n">warning</span><span class="p">(</span>
</span><span id="L-63"><a href="#L-63"><span class="linenos">63</span></a> <span class="s2">&quot;skipping doctest of missing optional symbol in </span><span class="si">%s</span><span class="s2">&quot;</span><span class="p">,</span> <span class="n">module</span>
</span><span id="L-64"><a href="#L-64"><span class="linenos">64</span></a> <span class="p">)</span>
</span><span id="L-65"><a href="#L-65"><span class="linenos">65</span></a> <span class="k">elif</span> <span class="n">err_type</span> <span class="o">==</span> <span class="n">np</span><span class="o">.</span><span class="n">core</span><span class="o">.</span><span class="n">_exceptions</span><span class="o">.</span><span class="n">_ArrayMemoryError</span><span class="p">:</span>
</span><span id="L-65"><a href="#L-65"><span class="linenos">65</span></a> <span class="k">elif</span> <span class="n">err_type</span> <span class="ow">is</span> <span class="n">np</span><span class="o">.</span><span class="n">core</span><span class="o">.</span><span class="n">_exceptions</span><span class="o">.</span><span class="n">_ArrayMemoryError</span><span class="p">:</span>
</span><span id="L-66"><a href="#L-66"><span class="linenos">66</span></a> <span class="c1"># Faiures to allocate should not be fatal to the doctest test suite.</span>
</span><span id="L-67"><a href="#L-67"><span class="linenos">67</span></a> <span class="n">_log</span><span class="o">.</span><span class="n">warning</span><span class="p">(</span>
</span><span id="L-68"><a href="#L-68"><span class="linenos">68</span></a> <span class="s2">&quot;skipping doctests for module </span><span class="si">%s</span><span class="s2"> due to insufficient memory&quot;</span><span class="p">,</span> <span class="n">module</span>
Expand Down Expand Up @@ -199,12 +199,12 @@ <h1 class="modulename">
</span><span id="test_doctests-58"><a href="#test_doctests-58"><span class="linenos">58</span></a> <span class="k">else</span><span class="p">:</span>
</span><span id="test_doctests-59"><a href="#test_doctests-59"><span class="linenos">59</span></a> <span class="n">lineno</span> <span class="o">=</span> <span class="sa">f</span><span class="s2">&quot;:</span><span class="si">{</span><span class="n">e</span><span class="o">.</span><span class="n">test</span><span class="o">.</span><span class="n">lineno</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="mi">1</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">e</span><span class="o">.</span><span class="n">example</span><span class="o">.</span><span class="n">lineno</span><span class="si">}</span><span class="s2">&quot;</span>
</span><span id="test_doctests-60"><a href="#test_doctests-60"><span class="linenos">60</span></a> <span class="n">err_type</span><span class="p">,</span> <span class="n">err</span><span class="p">,</span> <span class="n">_</span> <span class="o">=</span> <span class="n">e</span><span class="o">.</span><span class="n">exc_info</span>
</span><span id="test_doctests-61"><a href="#test_doctests-61"><span class="linenos">61</span></a> <span class="k">if</span> <span class="n">err_type</span> <span class="o">==</span> <span class="ne">NameError</span><span class="p">:</span> <span class="c1"># Raised on missing optional functions.</span>
</span><span id="test_doctests-61"><a href="#test_doctests-61"><span class="linenos">61</span></a> <span class="k">if</span> <span class="n">err_type</span> <span class="ow">is</span> <span class="ne">NameError</span><span class="p">:</span> <span class="c1"># Raised on missing optional functions.</span>
</span><span id="test_doctests-62"><a href="#test_doctests-62"><span class="linenos">62</span></a> <span class="c1"># Issue warning but let the test suite pass.</span>
</span><span id="test_doctests-63"><a href="#test_doctests-63"><span class="linenos">63</span></a> <span class="n">_log</span><span class="o">.</span><span class="n">warning</span><span class="p">(</span>
</span><span id="test_doctests-64"><a href="#test_doctests-64"><span class="linenos">64</span></a> <span class="s2">&quot;skipping doctest of missing optional symbol in </span><span class="si">%s</span><span class="s2">&quot;</span><span class="p">,</span> <span class="n">module</span>
</span><span id="test_doctests-65"><a href="#test_doctests-65"><span class="linenos">65</span></a> <span class="p">)</span>
</span><span id="test_doctests-66"><a href="#test_doctests-66"><span class="linenos">66</span></a> <span class="k">elif</span> <span class="n">err_type</span> <span class="o">==</span> <span class="n">np</span><span class="o">.</span><span class="n">core</span><span class="o">.</span><span class="n">_exceptions</span><span class="o">.</span><span class="n">_ArrayMemoryError</span><span class="p">:</span>
</span><span id="test_doctests-66"><a href="#test_doctests-66"><span class="linenos">66</span></a> <span class="k">elif</span> <span class="n">err_type</span> <span class="ow">is</span> <span class="n">np</span><span class="o">.</span><span class="n">core</span><span class="o">.</span><span class="n">_exceptions</span><span class="o">.</span><span class="n">_ArrayMemoryError</span><span class="p">:</span>
</span><span id="test_doctests-67"><a href="#test_doctests-67"><span class="linenos">67</span></a> <span class="c1"># Faiures to allocate should not be fatal to the doctest test suite.</span>
</span><span id="test_doctests-68"><a href="#test_doctests-68"><span class="linenos">68</span></a> <span class="n">_log</span><span class="o">.</span><span class="n">warning</span><span class="p">(</span>
</span><span id="test_doctests-69"><a href="#test_doctests-69"><span class="linenos">69</span></a> <span class="s2">&quot;skipping doctests for module </span><span class="si">%s</span><span class="s2"> due to insufficient memory&quot;</span><span class="p">,</span> <span class="n">module</span>
Expand Down
Loading

0 comments on commit fb3d318

Please sign in to comment.