Skip to content

Commit

Permalink
Deployed 19373f7 to dev with MkDocs 1.6.0 and mike 2.1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Aug 28, 2024
1 parent 8bb7684 commit 42a5f25
Show file tree
Hide file tree
Showing 4 changed files with 64 additions and 60 deletions.
76 changes: 40 additions & 36 deletions dev/reference/utils/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1557,12 +1557,7 @@ <h3 id="jaxley.utils.cell_utils.compute_morphology_indices_in_levels" class="doc

<details class="quote">
<summary>Source code in <code>jaxley/utils/cell_utils.py</code></summary>
<div class="codehilite"><table class="codehilitetable"><tr><td class="linenos"><div class="linenodiv"><pre><span></span><span class="normal">355</span>
<span class="normal">356</span>
<span class="normal">357</span>
<span class="normal">358</span>
<span class="normal">359</span>
<span class="normal">360</span>
<div class="codehilite"><table class="codehilitetable"><tr><td class="linenos"><div class="linenodiv"><pre><span></span><span class="normal">360</span>
<span class="normal">361</span>
<span class="normal">362</span>
<span class="normal">363</span>
Expand All @@ -1575,7 +1570,12 @@ <h3 id="jaxley.utils.cell_utils.compute_morphology_indices_in_levels" class="doc
<span class="normal">370</span>
<span class="normal">371</span>
<span class="normal">372</span>
<span class="normal">373</span></pre></div></td><td class="code"><div><pre><span></span><code><span class="k">def</span> <span class="nf">compute_morphology_indices_in_levels</span><span class="p">(</span>
<span class="normal">373</span>
<span class="normal">374</span>
<span class="normal">375</span>
<span class="normal">376</span>
<span class="normal">377</span>
<span class="normal">378</span></pre></div></td><td class="code"><div><pre><span></span><code><span class="k">def</span> <span class="nf">compute_morphology_indices_in_levels</span><span class="p">(</span>
<span class="n">num_branchpoints</span><span class="p">,</span>
<span class="n">child_belongs_to_branchpoint</span><span class="p">,</span>
<span class="n">par_inds</span><span class="p">,</span>
Expand Down Expand Up @@ -1678,12 +1678,7 @@ <h3 id="jaxley.utils.cell_utils.convert_point_process_to_distributed" class="doc
</details>
<details class="quote">
<summary>Source code in <code>jaxley/utils/cell_utils.py</code></summary>
<div class="codehilite"><table class="codehilitetable"><tr><td class="linenos"><div class="linenodiv"><pre><span></span><span class="normal">316</span>
<span class="normal">317</span>
<span class="normal">318</span>
<span class="normal">319</span>
<span class="normal">320</span>
<span class="normal">321</span>
<div class="codehilite"><table class="codehilitetable"><tr><td class="linenos"><div class="linenodiv"><pre><span></span><span class="normal">321</span>
<span class="normal">322</span>
<span class="normal">323</span>
<span class="normal">324</span>
Expand All @@ -1695,7 +1690,12 @@ <h3 id="jaxley.utils.cell_utils.convert_point_process_to_distributed" class="doc
<span class="normal">330</span>
<span class="normal">331</span>
<span class="normal">332</span>
<span class="normal">333</span></pre></div></td><td class="code"><div><pre><span></span><code><span class="k">def</span> <span class="nf">convert_point_process_to_distributed</span><span class="p">(</span>
<span class="normal">333</span>
<span class="normal">334</span>
<span class="normal">335</span>
<span class="normal">336</span>
<span class="normal">337</span>
<span class="normal">338</span></pre></div></td><td class="code"><div><pre><span></span><code><span class="k">def</span> <span class="nf">convert_point_process_to_distributed</span><span class="p">(</span>
<span class="n">current</span><span class="p">:</span> <span class="n">jnp</span><span class="o">.</span><span class="n">ndarray</span><span class="p">,</span> <span class="n">radius</span><span class="p">:</span> <span class="n">jnp</span><span class="o">.</span><span class="n">ndarray</span><span class="p">,</span> <span class="n">length</span><span class="p">:</span> <span class="n">jnp</span><span class="o">.</span><span class="n">ndarray</span>
<span class="p">)</span> <span class="o">-&gt;</span> <span class="n">jnp</span><span class="o">.</span><span class="n">ndarray</span><span class="p">:</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Convert current point process (nA) to distributed current (uA/cm2).</span>
Expand Down Expand Up @@ -1852,12 +1852,7 @@ <h3 id="jaxley.utils.cell_utils.group_and_sum" class="doc doc-heading">

<details class="quote">
<summary>Source code in <code>jaxley/utils/cell_utils.py</code></summary>
<div class="codehilite"><table class="codehilitetable"><tr><td class="linenos"><div class="linenodiv"><pre><span></span><span class="normal">376</span>
<span class="normal">377</span>
<span class="normal">378</span>
<span class="normal">379</span>
<span class="normal">380</span>
<span class="normal">381</span>
<div class="codehilite"><table class="codehilitetable"><tr><td class="linenos"><div class="linenodiv"><pre><span></span><span class="normal">381</span>
<span class="normal">382</span>
<span class="normal">383</span>
<span class="normal">384</span>
Expand All @@ -1869,7 +1864,12 @@ <h3 id="jaxley.utils.cell_utils.group_and_sum" class="doc doc-heading">
<span class="normal">390</span>
<span class="normal">391</span>
<span class="normal">392</span>
<span class="normal">393</span></pre></div></td><td class="code"><div><pre><span></span><code><span class="k">def</span> <span class="nf">group_and_sum</span><span class="p">(</span>
<span class="normal">393</span>
<span class="normal">394</span>
<span class="normal">395</span>
<span class="normal">396</span>
<span class="normal">397</span>
<span class="normal">398</span></pre></div></td><td class="code"><div><pre><span></span><code><span class="k">def</span> <span class="nf">group_and_sum</span><span class="p">(</span>
<span class="n">values_to_sum</span><span class="p">:</span> <span class="n">jnp</span><span class="o">.</span><span class="n">ndarray</span><span class="p">,</span> <span class="n">inds_to_group_by</span><span class="p">:</span> <span class="n">jnp</span><span class="o">.</span><span class="n">ndarray</span><span class="p">,</span> <span class="n">num_branchpoints</span><span class="p">:</span> <span class="nb">int</span>
<span class="p">)</span> <span class="o">-&gt;</span> <span class="n">jnp</span><span class="o">.</span><span class="n">ndarray</span><span class="p">:</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Group values by whether they have the same integer and sum values within group.</span>
Expand Down Expand Up @@ -2094,10 +2094,7 @@ <h3 id="jaxley.utils.cell_utils.interpolate_xyz" class="doc doc-heading">
</details>
<details class="quote">
<summary>Source code in <code>jaxley/utils/cell_utils.py</code></summary>
<div class="codehilite"><table class="codehilitetable"><tr><td class="linenos"><div class="linenodiv"><pre><span></span><span class="normal">284</span>
<span class="normal">285</span>
<span class="normal">286</span>
<span class="normal">287</span>
<div class="codehilite"><table class="codehilitetable"><tr><td class="linenos"><div class="linenodiv"><pre><span></span><span class="normal">287</span>
<span class="normal">288</span>
<span class="normal">289</span>
<span class="normal">290</span>
Expand All @@ -2106,7 +2103,12 @@ <h3 id="jaxley.utils.cell_utils.interpolate_xyz" class="doc doc-heading">
<span class="normal">293</span>
<span class="normal">294</span>
<span class="normal">295</span>
<span class="normal">296</span></pre></div></td><td class="code"><div><pre><span></span><code><span class="k">def</span> <span class="nf">interpolate_xyz</span><span class="p">(</span><span class="n">loc</span><span class="p">:</span> <span class="nb">float</span><span class="p">,</span> <span class="n">coords</span><span class="p">:</span> <span class="n">np</span><span class="o">.</span><span class="n">ndarray</span><span class="p">):</span>
<span class="normal">296</span>
<span class="normal">297</span>
<span class="normal">298</span>
<span class="normal">299</span>
<span class="normal">300</span>
<span class="normal">301</span></pre></div></td><td class="code"><div><pre><span></span><code><span class="k">def</span> <span class="nf">interpolate_xyz</span><span class="p">(</span><span class="n">loc</span><span class="p">:</span> <span class="nb">float</span><span class="p">,</span> <span class="n">coords</span><span class="p">:</span> <span class="n">np</span><span class="o">.</span><span class="n">ndarray</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Perform a linear interpolation between xyz-coordinates.</span>

<span class="sd"> Args:</span>
Expand All @@ -2116,9 +2118,11 @@ <h3 id="jaxley.utils.cell_utils.interpolate_xyz" class="doc doc-heading">
<span class="sd"> Return:</span>
<span class="sd"> Interpolated xyz coordinate at `loc`, shape `(3,).</span>
<span class="sd"> &quot;&quot;&quot;</span>
<span class="k">return</span> <span class="n">vmap</span><span class="p">(</span><span class="k">lambda</span> <span class="n">x</span><span class="p">:</span> <span class="n">jnp</span><span class="o">.</span><span class="n">interp</span><span class="p">(</span><span class="n">loc</span><span class="p">,</span> <span class="n">jnp</span><span class="o">.</span><span class="n">linspace</span><span class="p">(</span><span class="mi">0</span><span class="p">,</span> <span class="mi">1</span><span class="p">,</span> <span class="nb">len</span><span class="p">(</span><span class="n">x</span><span class="p">)),</span> <span class="n">x</span><span class="p">),</span> <span class="n">in_axes</span><span class="o">=</span><span class="p">(</span><span class="mi">1</span><span class="p">,))(</span>
<span class="n">coords</span><span class="p">[:,</span> <span class="p">:</span><span class="mi">3</span><span class="p">]</span>
<span class="p">)</span>
<span class="n">dl</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">sqrt</span><span class="p">(</span><span class="n">np</span><span class="o">.</span><span class="n">sum</span><span class="p">(</span><span class="n">np</span><span class="o">.</span><span class="n">diff</span><span class="p">(</span><span class="n">coords</span><span class="p">[:,</span> <span class="p">:</span><span class="mi">3</span><span class="p">],</span> <span class="n">axis</span><span class="o">=</span><span class="mi">0</span><span class="p">)</span> <span class="o">**</span> <span class="mi">2</span><span class="p">,</span> <span class="n">axis</span><span class="o">=</span><span class="mi">1</span><span class="p">))</span>
<span class="n">pathlens</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">insert</span><span class="p">(</span><span class="n">np</span><span class="o">.</span><span class="n">cumsum</span><span class="p">(</span><span class="n">dl</span><span class="p">),</span> <span class="mi">0</span><span class="p">,</span> <span class="mi">0</span><span class="p">)</span> <span class="c1"># cummulative length of sections</span>
<span class="n">norm_pathlens</span> <span class="o">=</span> <span class="n">pathlens</span> <span class="o">/</span> <span class="n">pathlens</span><span class="p">[</span><span class="o">-</span><span class="mi">1</span><span class="p">]</span> <span class="c1"># path lengths normalized to [0,1]</span>

<span class="k">return</span> <span class="n">v_interp</span><span class="p">(</span><span class="n">loc</span><span class="p">,</span> <span class="n">norm_pathlens</span><span class="p">,</span> <span class="n">coords</span><span class="p">[:,</span> <span class="p">:</span><span class="mi">3</span><span class="p">])</span>
</code></pre></div></td></tr></table></div>
</details>
</div>
Expand Down Expand Up @@ -2500,12 +2504,7 @@ <h3 id="jaxley.utils.cell_utils.params_to_pstate" class="doc doc-heading">

<details class="quote">
<summary>Source code in <code>jaxley/utils/cell_utils.py</code></summary>
<div class="codehilite"><table class="codehilitetable"><tr><td class="linenos"><div class="linenodiv"><pre><span></span><span class="normal">299</span>
<span class="normal">300</span>
<span class="normal">301</span>
<span class="normal">302</span>
<span class="normal">303</span>
<span class="normal">304</span>
<div class="codehilite"><table class="codehilitetable"><tr><td class="linenos"><div class="linenodiv"><pre><span></span><span class="normal">304</span>
<span class="normal">305</span>
<span class="normal">306</span>
<span class="normal">307</span>
Expand All @@ -2514,7 +2513,12 @@ <h3 id="jaxley.utils.cell_utils.params_to_pstate" class="doc doc-heading">
<span class="normal">310</span>
<span class="normal">311</span>
<span class="normal">312</span>
<span class="normal">313</span></pre></div></td><td class="code"><div><pre><span></span><code><span class="k">def</span> <span class="nf">params_to_pstate</span><span class="p">(</span>
<span class="normal">313</span>
<span class="normal">314</span>
<span class="normal">315</span>
<span class="normal">316</span>
<span class="normal">317</span>
<span class="normal">318</span></pre></div></td><td class="code"><div><pre><span></span><code><span class="k">def</span> <span class="nf">params_to_pstate</span><span class="p">(</span>
<span class="n">params</span><span class="p">:</span> <span class="n">List</span><span class="p">[</span><span class="n">Dict</span><span class="p">[</span><span class="nb">str</span><span class="p">,</span> <span class="n">jnp</span><span class="o">.</span><span class="n">ndarray</span><span class="p">]],</span>
<span class="n">indices_set_by_trainables</span><span class="p">:</span> <span class="n">List</span><span class="p">[</span><span class="n">jnp</span><span class="o">.</span><span class="n">ndarray</span><span class="p">],</span>
<span class="p">):</span>
Expand Down
2 changes: 1 addition & 1 deletion dev/search/search_index.json

Large diffs are not rendered by default.

46 changes: 23 additions & 23 deletions dev/sitemap.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,117 +2,117 @@
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://jaxleyverse.github.io/jaxley/dev/</loc>
<lastmod>2024-08-26</lastmod>
<lastmod>2024-08-28</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://jaxleyverse.github.io/jaxley/dev/code_of_conduct/</loc>
<lastmod>2024-08-26</lastmod>
<lastmod>2024-08-28</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://jaxleyverse.github.io/jaxley/dev/contribute/</loc>
<lastmod>2024-08-26</lastmod>
<lastmod>2024-08-28</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://jaxleyverse.github.io/jaxley/dev/credits/</loc>
<lastmod>2024-08-26</lastmod>
<lastmod>2024-08-28</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://jaxleyverse.github.io/jaxley/dev/faq/</loc>
<lastmod>2024-08-26</lastmod>
<lastmod>2024-08-28</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://jaxleyverse.github.io/jaxley/dev/install/</loc>
<lastmod>2024-08-26</lastmod>
<lastmod>2024-08-28</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://jaxleyverse.github.io/jaxley/dev/faq/question_01/</loc>
<lastmod>2024-08-26</lastmod>
<lastmod>2024-08-28</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://jaxleyverse.github.io/jaxley/dev/faq/question_02/</loc>
<lastmod>2024-08-26</lastmod>
<lastmod>2024-08-28</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://jaxleyverse.github.io/jaxley/dev/faq/question_03/</loc>
<lastmod>2024-08-26</lastmod>
<lastmod>2024-08-28</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://jaxleyverse.github.io/jaxley/dev/reference/connect/</loc>
<lastmod>2024-08-26</lastmod>
<lastmod>2024-08-28</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://jaxleyverse.github.io/jaxley/dev/reference/integration/</loc>
<lastmod>2024-08-26</lastmod>
<lastmod>2024-08-28</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://jaxleyverse.github.io/jaxley/dev/reference/mechanisms/</loc>
<lastmod>2024-08-26</lastmod>
<lastmod>2024-08-28</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://jaxleyverse.github.io/jaxley/dev/reference/modules/</loc>
<lastmod>2024-08-26</lastmod>
<lastmod>2024-08-28</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://jaxleyverse.github.io/jaxley/dev/reference/optimize/</loc>
<lastmod>2024-08-26</lastmod>
<lastmod>2024-08-28</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://jaxleyverse.github.io/jaxley/dev/reference/utils/</loc>
<lastmod>2024-08-26</lastmod>
<lastmod>2024-08-28</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://jaxleyverse.github.io/jaxley/dev/tutorials/01_morph_neurons/</loc>
<lastmod>2024-08-26</lastmod>
<lastmod>2024-08-28</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://jaxleyverse.github.io/jaxley/dev/tutorials/02_small_network/</loc>
<lastmod>2024-08-26</lastmod>
<lastmod>2024-08-28</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://jaxleyverse.github.io/jaxley/dev/tutorials/03_setting_parameters/</loc>
<lastmod>2024-08-26</lastmod>
<lastmod>2024-08-28</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://jaxleyverse.github.io/jaxley/dev/tutorials/04_jit_and_vmap/</loc>
<lastmod>2024-08-26</lastmod>
<lastmod>2024-08-28</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://jaxleyverse.github.io/jaxley/dev/tutorials/05_channel_and_synapse_models/</loc>
<lastmod>2024-08-26</lastmod>
<lastmod>2024-08-28</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://jaxleyverse.github.io/jaxley/dev/tutorials/06_groups/</loc>
<lastmod>2024-08-26</lastmod>
<lastmod>2024-08-28</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://jaxleyverse.github.io/jaxley/dev/tutorials/07_gradient_descent/</loc>
<lastmod>2024-08-26</lastmod>
<lastmod>2024-08-28</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://jaxleyverse.github.io/jaxley/dev/tutorials/08_importing_morphologies/</loc>
<lastmod>2024-08-26</lastmod>
<lastmod>2024-08-28</lastmod>
<changefreq>daily</changefreq>
</url>
</urlset>
Binary file modified dev/sitemap.xml.gz
Binary file not shown.

0 comments on commit 42a5f25

Please sign in to comment.