Skip to content

Commit

Permalink
Deploying to gh-pages from @ 4d3983f 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
FynnBe committed May 15, 2024
1 parent 7510a17 commit b9e5899
Show file tree
Hide file tree
Showing 2 changed files with 509 additions and 502 deletions.
38 changes: 19 additions & 19 deletions bioimageio/core.html
Original file line number Diff line number Diff line change
Expand Up @@ -315,25 +315,25 @@ <h3 id="0510">0.5.10</h3>

</div>
<a class="headerlink" href="#test_resource"></a>
<div class="pdoc-code codehilite"><pre><span></span><span id="test_resource-49"><a href="#test_resource-49"><span class="linenos">49</span></a><span class="k">def</span> <span class="nf">test_description</span><span class="p">(</span>
</span><span id="test_resource-50"><a href="#test_resource-50"><span class="linenos">50</span></a> <span class="n">source</span><span class="p">:</span> <span class="n">Union</span><span class="p">[</span><span class="n">ResourceDescr</span><span class="p">,</span> <span class="n">PermissiveFileSource</span><span class="p">,</span> <span class="n">BioimageioYamlContent</span><span class="p">],</span>
</span><span id="test_resource-51"><a href="#test_resource-51"><span class="linenos">51</span></a> <span class="o">*</span><span class="p">,</span>
</span><span id="test_resource-52"><a href="#test_resource-52"><span class="linenos">52</span></a> <span class="n">format_version</span><span class="p">:</span> <span class="n">Union</span><span class="p">[</span><span class="n">Literal</span><span class="p">[</span><span class="s2">&quot;discover&quot;</span><span class="p">,</span> <span class="s2">&quot;latest&quot;</span><span class="p">],</span> <span class="nb">str</span><span class="p">]</span> <span class="o">=</span> <span class="s2">&quot;discover&quot;</span><span class="p">,</span>
</span><span id="test_resource-53"><a href="#test_resource-53"><span class="linenos">53</span></a> <span class="n">weight_format</span><span class="p">:</span> <span class="n">Optional</span><span class="p">[</span><span class="n">WeightsFormat</span><span class="p">]</span> <span class="o">=</span> <span class="kc">None</span><span class="p">,</span>
</span><span id="test_resource-54"><a href="#test_resource-54"><span class="linenos">54</span></a> <span class="n">devices</span><span class="p">:</span> <span class="n">Optional</span><span class="p">[</span><span class="n">List</span><span class="p">[</span><span class="nb">str</span><span class="p">]]</span> <span class="o">=</span> <span class="kc">None</span><span class="p">,</span>
</span><span id="test_resource-55"><a href="#test_resource-55"><span class="linenos">55</span></a> <span class="n">decimal</span><span class="p">:</span> <span class="nb">int</span> <span class="o">=</span> <span class="mi">4</span><span class="p">,</span>
</span><span id="test_resource-56"><a href="#test_resource-56"><span class="linenos">56</span></a> <span class="n">expected_type</span><span class="p">:</span> <span class="n">Optional</span><span class="p">[</span><span class="nb">str</span><span class="p">]</span> <span class="o">=</span> <span class="kc">None</span><span class="p">,</span>
</span><span id="test_resource-57"><a href="#test_resource-57"><span class="linenos">57</span></a><span class="p">)</span> <span class="o">-&gt;</span> <span class="n">ValidationSummary</span><span class="p">:</span>
</span><span id="test_resource-58"><a href="#test_resource-58"><span class="linenos">58</span></a><span class="w"> </span><span class="sd">&quot;&quot;&quot;Test a bioimage.io resource dynamically, e.g. prediction of test tensors for models&quot;&quot;&quot;</span>
</span><span id="test_resource-59"><a href="#test_resource-59"><span class="linenos">59</span></a> <span class="n">rd</span> <span class="o">=</span> <span class="n">load_description_and_test</span><span class="p">(</span>
</span><span id="test_resource-60"><a href="#test_resource-60"><span class="linenos">60</span></a> <span class="n">source</span><span class="p">,</span>
</span><span id="test_resource-61"><a href="#test_resource-61"><span class="linenos">61</span></a> <span class="n">format_version</span><span class="o">=</span><span class="n">format_version</span><span class="p">,</span>
</span><span id="test_resource-62"><a href="#test_resource-62"><span class="linenos">62</span></a> <span class="n">weight_format</span><span class="o">=</span><span class="n">weight_format</span><span class="p">,</span>
</span><span id="test_resource-63"><a href="#test_resource-63"><span class="linenos">63</span></a> <span class="n">devices</span><span class="o">=</span><span class="n">devices</span><span class="p">,</span>
</span><span id="test_resource-64"><a href="#test_resource-64"><span class="linenos">64</span></a> <span class="n">decimal</span><span class="o">=</span><span class="n">decimal</span><span class="p">,</span>
</span><span id="test_resource-65"><a href="#test_resource-65"><span class="linenos">65</span></a> <span class="n">expected_type</span><span class="o">=</span><span class="n">expected_type</span><span class="p">,</span>
</span><span id="test_resource-66"><a href="#test_resource-66"><span class="linenos">66</span></a> <span class="p">)</span>
</span><span id="test_resource-67"><a href="#test_resource-67"><span class="linenos">67</span></a> <span class="k">return</span> <span class="n">rd</span><span class="o">.</span><span class="n">validation_summary</span>
<div class="pdoc-code codehilite"><pre><span></span><span id="test_resource-50"><a href="#test_resource-50"><span class="linenos">50</span></a><span class="k">def</span> <span class="nf">test_description</span><span class="p">(</span>
</span><span id="test_resource-51"><a href="#test_resource-51"><span class="linenos">51</span></a> <span class="n">source</span><span class="p">:</span> <span class="n">Union</span><span class="p">[</span><span class="n">ResourceDescr</span><span class="p">,</span> <span class="n">PermissiveFileSource</span><span class="p">,</span> <span class="n">BioimageioYamlContent</span><span class="p">],</span>
</span><span id="test_resource-52"><a href="#test_resource-52"><span class="linenos">52</span></a> <span class="o">*</span><span class="p">,</span>
</span><span id="test_resource-53"><a href="#test_resource-53"><span class="linenos">53</span></a> <span class="n">format_version</span><span class="p">:</span> <span class="n">Union</span><span class="p">[</span><span class="n">Literal</span><span class="p">[</span><span class="s2">&quot;discover&quot;</span><span class="p">,</span> <span class="s2">&quot;latest&quot;</span><span class="p">],</span> <span class="nb">str</span><span class="p">]</span> <span class="o">=</span> <span class="s2">&quot;discover&quot;</span><span class="p">,</span>
</span><span id="test_resource-54"><a href="#test_resource-54"><span class="linenos">54</span></a> <span class="n">weight_format</span><span class="p">:</span> <span class="n">Optional</span><span class="p">[</span><span class="n">WeightsFormat</span><span class="p">]</span> <span class="o">=</span> <span class="kc">None</span><span class="p">,</span>
</span><span id="test_resource-55"><a href="#test_resource-55"><span class="linenos">55</span></a> <span class="n">devices</span><span class="p">:</span> <span class="n">Optional</span><span class="p">[</span><span class="n">List</span><span class="p">[</span><span class="nb">str</span><span class="p">]]</span> <span class="o">=</span> <span class="kc">None</span><span class="p">,</span>
</span><span id="test_resource-56"><a href="#test_resource-56"><span class="linenos">56</span></a> <span class="n">decimal</span><span class="p">:</span> <span class="nb">int</span> <span class="o">=</span> <span class="mi">4</span><span class="p">,</span>
</span><span id="test_resource-57"><a href="#test_resource-57"><span class="linenos">57</span></a> <span class="n">expected_type</span><span class="p">:</span> <span class="n">Optional</span><span class="p">[</span><span class="nb">str</span><span class="p">]</span> <span class="o">=</span> <span class="kc">None</span><span class="p">,</span>
</span><span id="test_resource-58"><a href="#test_resource-58"><span class="linenos">58</span></a><span class="p">)</span> <span class="o">-&gt;</span> <span class="n">ValidationSummary</span><span class="p">:</span>
</span><span id="test_resource-59"><a href="#test_resource-59"><span class="linenos">59</span></a><span class="w"> </span><span class="sd">&quot;&quot;&quot;Test a bioimage.io resource dynamically, e.g. prediction of test tensors for models&quot;&quot;&quot;</span>
</span><span id="test_resource-60"><a href="#test_resource-60"><span class="linenos">60</span></a> <span class="n">rd</span> <span class="o">=</span> <span class="n">load_description_and_test</span><span class="p">(</span>
</span><span id="test_resource-61"><a href="#test_resource-61"><span class="linenos">61</span></a> <span class="n">source</span><span class="p">,</span>
</span><span id="test_resource-62"><a href="#test_resource-62"><span class="linenos">62</span></a> <span class="n">format_version</span><span class="o">=</span><span class="n">format_version</span><span class="p">,</span>
</span><span id="test_resource-63"><a href="#test_resource-63"><span class="linenos">63</span></a> <span class="n">weight_format</span><span class="o">=</span><span class="n">weight_format</span><span class="p">,</span>
</span><span id="test_resource-64"><a href="#test_resource-64"><span class="linenos">64</span></a> <span class="n">devices</span><span class="o">=</span><span class="n">devices</span><span class="p">,</span>
</span><span id="test_resource-65"><a href="#test_resource-65"><span class="linenos">65</span></a> <span class="n">decimal</span><span class="o">=</span><span class="n">decimal</span><span class="p">,</span>
</span><span id="test_resource-66"><a href="#test_resource-66"><span class="linenos">66</span></a> <span class="n">expected_type</span><span class="o">=</span><span class="n">expected_type</span><span class="p">,</span>
</span><span id="test_resource-67"><a href="#test_resource-67"><span class="linenos">67</span></a> <span class="p">)</span>
</span><span id="test_resource-68"><a href="#test_resource-68"><span class="linenos">68</span></a> <span class="k">return</span> <span class="n">rd</span><span class="o">.</span><span class="n">validation_summary</span>
</span></pre></div>


Expand Down
Loading

0 comments on commit b9e5899

Please sign in to comment.