Skip to content

Commit

Permalink
deploy: 827a877
Browse files Browse the repository at this point in the history
  • Loading branch information
jmsmkn committed Jan 24, 2024
1 parent a3b7f55 commit 52b332e
Show file tree
Hide file tree
Showing 10 changed files with 152 additions and 48 deletions.
26 changes: 26 additions & 0 deletions _modules/grandchallenge/components/models.html
Original file line number Diff line number Diff line change
Expand Up @@ -828,6 +828,32 @@ <h1>Source code for grandchallenge.components.models</h1><div class="highlight">
<span class="n">InterfaceKind</span><span class="o">.</span><span class="n">InterfaceKindChoices</span><span class="o">.</span><span class="n">OBJ</span><span class="p">,</span>
<span class="n">InterfaceKind</span><span class="o">.</span><span class="n">InterfaceKindChoices</span><span class="o">.</span><span class="n">MP4</span><span class="p">,</span>
<span class="p">}</span></div>


<div class="viewcode-block" id="InterfaceKind.interface_type_mandatory_isolation">
<a class="viewcode-back" href="../../../components.html#grandchallenge.components.models.InterfaceKind.interface_type_mandatory_isolation">[docs]</a>
<span class="nd">@staticmethod</span>
<span class="k">def</span> <span class="nf">interface_type_mandatory_isolation</span><span class="p">():</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Interfaces that can only be displayed in isolation.&quot;&quot;&quot;</span>
<span class="k">return</span> <span class="p">{</span>
<span class="n">InterfaceKind</span><span class="o">.</span><span class="n">InterfaceKindChoices</span><span class="o">.</span><span class="n">CHART</span><span class="p">,</span>
<span class="n">InterfaceKind</span><span class="o">.</span><span class="n">InterfaceKindChoices</span><span class="o">.</span><span class="n">PDF</span><span class="p">,</span>
<span class="n">InterfaceKind</span><span class="o">.</span><span class="n">InterfaceKindChoices</span><span class="o">.</span><span class="n">THUMBNAIL_JPG</span><span class="p">,</span>
<span class="n">InterfaceKind</span><span class="o">.</span><span class="n">InterfaceKindChoices</span><span class="o">.</span><span class="n">THUMBNAIL_PNG</span><span class="p">,</span>
<span class="n">InterfaceKind</span><span class="o">.</span><span class="n">InterfaceKindChoices</span><span class="o">.</span><span class="n">MP4</span><span class="p">,</span>
<span class="p">}</span></div>


<div class="viewcode-block" id="InterfaceKind.interface_type_undisplayable">
<a class="viewcode-back" href="../../../components.html#grandchallenge.components.models.InterfaceKind.interface_type_undisplayable">[docs]</a>
<span class="nd">@staticmethod</span>
<span class="k">def</span> <span class="nf">interface_type_undisplayable</span><span class="p">():</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Interfaces that cannot be displayed.&quot;&quot;&quot;</span>
<span class="k">return</span> <span class="p">{</span>
<span class="n">InterfaceKind</span><span class="o">.</span><span class="n">InterfaceKindChoices</span><span class="o">.</span><span class="n">CSV</span><span class="p">,</span>
<span class="n">InterfaceKind</span><span class="o">.</span><span class="n">InterfaceKindChoices</span><span class="o">.</span><span class="n">ZIP</span><span class="p">,</span>
<span class="n">InterfaceKind</span><span class="o">.</span><span class="n">InterfaceKindChoices</span><span class="o">.</span><span class="n">OBJ</span><span class="p">,</span>
<span class="p">}</span></div>
</div>


Expand Down
10 changes: 2 additions & 8 deletions _modules/grandchallenge/evaluation/models.html
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ <h1>Source code for grandchallenge.evaluation.models</h1><div class="highlight">
<span class="n">StatusChoices</span><span class="p">,</span>
<span class="n">SubmissionKindChoices</span><span class="p">,</span>
<span class="p">)</span>
<span class="kn">from</span> <span class="nn">grandchallenge.hanging_protocols.models</span> <span class="kn">import</span> <span class="n">ViewContentMixin</span>
<span class="kn">from</span> <span class="nn">grandchallenge.hanging_protocols.models</span> <span class="kn">import</span> <span class="n">HangingProtocolMixin</span>
<span class="kn">from</span> <span class="nn">grandchallenge.notifications.models</span> <span class="kn">import</span> <span class="n">Notification</span><span class="p">,</span> <span class="n">NotificationType</span>
<span class="kn">from</span> <span class="nn">grandchallenge.profiles.tasks</span> <span class="kn">import</span> <span class="n">deactivate_user</span>
<span class="kn">from</span> <span class="nn">grandchallenge.subdomains.utils</span> <span class="kn">import</span> <span class="n">reverse</span>
Expand Down Expand Up @@ -210,7 +210,7 @@ <h1>Source code for grandchallenge.evaluation.models</h1><div class="highlight">

<div class="viewcode-block" id="Phase">
<a class="viewcode-back" href="../../../evaluation.html#grandchallenge.evaluation.models.Phase">[docs]</a>
<span class="k">class</span> <span class="nc">Phase</span><span class="p">(</span><span class="n">FieldChangeMixin</span><span class="p">,</span> <span class="n">ViewContentMixin</span><span class="p">,</span> <span class="n">UUIDModel</span><span class="p">):</span>
<span class="k">class</span> <span class="nc">Phase</span><span class="p">(</span><span class="n">FieldChangeMixin</span><span class="p">,</span> <span class="n">HangingProtocolMixin</span><span class="p">,</span> <span class="n">UUIDModel</span><span class="p">):</span>
<span class="c1"># This must match the syntax used in jquery datatables</span>
<span class="c1"># https://datatables.net/reference/option/order</span>
<span class="n">ASCENDING</span> <span class="o">=</span> <span class="s2">&quot;asc&quot;</span>
Expand Down Expand Up @@ -569,12 +569,6 @@ <h1>Source code for grandchallenge.evaluation.models</h1><div class="highlight">
<span class="n">blank</span><span class="o">=</span><span class="kc">True</span><span class="p">,</span>
<span class="n">on_delete</span><span class="o">=</span><span class="n">models</span><span class="o">.</span><span class="n">SET_NULL</span><span class="p">,</span>
<span class="p">)</span>
<span class="n">hanging_protocol</span> <span class="o">=</span> <span class="n">models</span><span class="o">.</span><span class="n">ForeignKey</span><span class="p">(</span>
<span class="s2">&quot;hanging_protocols.HangingProtocol&quot;</span><span class="p">,</span>
<span class="n">null</span><span class="o">=</span><span class="kc">True</span><span class="p">,</span>
<span class="n">blank</span><span class="o">=</span><span class="kc">True</span><span class="p">,</span>
<span class="n">on_delete</span><span class="o">=</span><span class="n">models</span><span class="o">.</span><span class="n">SET_NULL</span><span class="p">,</span>
<span class="p">)</span>
<span class="n">optional_hanging_protocols</span> <span class="o">=</span> <span class="n">models</span><span class="o">.</span><span class="n">ManyToManyField</span><span class="p">(</span>
<span class="s2">&quot;hanging_protocols.HangingProtocol&quot;</span><span class="p">,</span>
<span class="n">through</span><span class="o">=</span><span class="s2">&quot;OptionalHangingProtocolPhase&quot;</span><span class="p">,</span>
Expand Down
Loading

0 comments on commit 52b332e

Please sign in to comment.