Skip to content

Commit

Permalink
Deploying to gh-pages from main @ 2def9f5 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
benjijamorris committed Oct 11, 2024
1 parent abf08ee commit 73f665a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion _modules/cyto_dl/datamodules/multidim_image.html
Original file line number Diff line number Diff line change
Expand Up @@ -559,6 +559,7 @@ <h1>Source code for cyto_dl.datamodules.multidim_image</h1><div class="highlight
<span class="s2">&quot;original_path&quot;</span><span class="p">:</span> <span class="n">row</span><span class="p">[</span><span class="bp">self</span><span class="o">.</span><span class="n">img_path_column</span><span class="p">],</span>
<span class="p">}</span>
<span class="p">)</span>
<span class="n">img_data</span><span class="o">.</span><span class="n">reverse</span><span class="p">()</span>
<span class="k">return</span> <span class="n">img_data</span></div>

<span class="k">def</span> <span class="nf">_metadata_to_str</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">metadata</span><span class="p">):</span>
Expand Down Expand Up @@ -608,7 +609,7 @@ <h1>Source code for cyto_dl.datamodules.multidim_image</h1><div class="highlight
<span class="c1"># some monai transforms return a batch. When collated, the batch dimension gets moved to the channel dimension</span>
<span class="k">if</span> <span class="bp">self</span><span class="o">.</span><span class="n">is_batch</span><span class="p">(</span><span class="n">output_img</span><span class="p">):</span>
<span class="k">return</span> <span class="p">[{</span><span class="bp">self</span><span class="o">.</span><span class="n">out_key</span><span class="p">:</span> <span class="n">img</span><span class="p">}</span> <span class="k">for</span> <span class="n">img</span> <span class="ow">in</span> <span class="n">output_img</span><span class="p">]</span>
<span class="k">return</span> <span class="p">{</span><span class="bp">self</span><span class="o">.</span><span class="n">out_key</span><span class="p">:</span> <span class="n">img</span><span class="p">}</span>
<span class="k">return</span> <span class="p">{</span><span class="bp">self</span><span class="o">.</span><span class="n">out_key</span><span class="p">:</span> <span class="n">output_img</span><span class="p">}</span>

<span class="k">def</span> <span class="fm">__len__</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
<span class="k">return</span> <span class="nb">len</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">img_data</span><span class="p">)</span></div>
Expand Down

0 comments on commit 73f665a

Please sign in to comment.