Skip to content

Commit 9ce24b8

Browse files
author
Documenter.jl
committed
build based on 22e1ba9
1 parent 51c8b80 commit 9ce24b8

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"documenter":{"julia_version":"1.10.1","generation_timestamp":"2024-03-01T09:11:16","documenter_version":"1.2.1"}}
1+
{"documenter":{"julia_version":"1.10.1","generation_timestamp":"2024-03-01T10:02:02","documenter_version":"1.2.1"}}

previews/PR87/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,4 +240,4 @@
240240
[8e850b90] libblastrampoline_jll v5.8.0+1
241241
[8e850ede] nghttp2_jll v1.52.0+1
242242
[3f19e933] p7zip_jll v17.4.0+2
243-
Info Packages marked with ⌃ and ⌅ have new versions available. Those with ⌃ may be upgradable, but those with ⌅ are restricted by compatibility constraints from upgrading. To see why use `status --outdated -m`</code></pre></details><p>You can also download the <a href="https://github.com/SciML/MultiScaleArrays.jl/tree/gh-pages/v1.12.0/assets/Manifest.toml">manifest</a> file and the <a href="https://github.com/SciML/MultiScaleArrays.jl/tree/gh-pages/v1.12.0/assets/Project.toml">project</a> file.</p></article><nav class="docs-footer"><a class="docs-footer-nextpage" href="multiscalearray/">API »</a><div class="flexbox-break"></div><p class="footer-message">Powered by <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> and the <a href="https://julialang.org/">Julia Programming Language</a>.</p></nav></div><div class="modal" id="documenter-settings"><div class="modal-background"></div><div class="modal-card"><header class="modal-card-head"><p class="modal-card-title">Settings</p><button class="delete"></button></header><section class="modal-card-body"><p><label class="label">Theme</label><div class="select"><select id="documenter-themepicker"><option value="documenter-light">documenter-light</option><option value="documenter-dark">documenter-dark</option><option value="auto">Automatic (OS)</option></select></div></p><hr/><p>This document was generated with <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> version 1.2.1 on <span class="colophon-date" title="Friday 1 March 2024 09:11">Friday 1 March 2024</span>. Using Julia version 1.10.1.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html>
243+
Info Packages marked with ⌃ and ⌅ have new versions available. Those with ⌃ may be upgradable, but those with ⌅ are restricted by compatibility constraints from upgrading. To see why use `status --outdated -m`</code></pre></details><p>You can also download the <a href="https://github.com/SciML/MultiScaleArrays.jl/tree/gh-pages/v1.12.0/assets/Manifest.toml">manifest</a> file and the <a href="https://github.com/SciML/MultiScaleArrays.jl/tree/gh-pages/v1.12.0/assets/Project.toml">project</a> file.</p></article><nav class="docs-footer"><a class="docs-footer-nextpage" href="multiscalearray/">API »</a><div class="flexbox-break"></div><p class="footer-message">Powered by <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> and the <a href="https://julialang.org/">Julia Programming Language</a>.</p></nav></div><div class="modal" id="documenter-settings"><div class="modal-background"></div><div class="modal-card"><header class="modal-card-head"><p class="modal-card-title">Settings</p><button class="delete"></button></header><section class="modal-card-body"><p><label class="label">Theme</label><div class="select"><select id="documenter-themepicker"><option value="documenter-light">documenter-light</option><option value="documenter-dark">documenter-dark</option><option value="auto">Automatic (OS)</option></select></div></p><hr/><p>This document was generated with <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> version 1.2.1 on <span class="colophon-date" title="Friday 1 March 2024 10:02">Friday 1 March 2024</span>. Using Julia version 1.10.1.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html>

previews/PR87/multiscalearray/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
plant2 = construct(Plant, (deepcopy(organ3), deepcopy(organ4)), Float64[],
5353
PlantSettings(1.0))
5454
community = construct(Community, (deepcopy(plant1), deepcopy(plant2)))
55-
scenario = construct(Scenario, (deepcopy(community),))</code></pre><p>(of course at the cost of mutability).</p></div><a class="docs-sourcelink" target="_blank" href="https://github.com/SciML/MultiScaleArrays.jl/blob/7c38a1e03279bef5dcb221120a2f0f4e8cfe7058/src/MultiScaleArrays.jl#L13-L169">source</a></section></article><article class="docstring"><header><a class="docstring-article-toggle-button fa-solid fa-chevron-down" href="javascript:;" title="Collapse docstring"></a><a class="docstring-binding" id="MultiScaleArrays.print_human_readable" href="#MultiScaleArrays.print_human_readable"><code>MultiScaleArrays.print_human_readable</code></a><span class="docstring-category">Function</span></header><section><div><pre><code class="language-julia hljs">print_human_readable(embryo)
55+
scenario = construct(Scenario, (deepcopy(community),))</code></pre><p>(of course at the cost of mutability).</p></div><a class="docs-sourcelink" target="_blank" href="https://github.com/SciML/MultiScaleArrays.jl/blob/22e1ba914adbd608dd4b5dd6347b4996d7f50b51/src/MultiScaleArrays.jl#L13-L169">source</a></section></article><article class="docstring"><header><a class="docstring-article-toggle-button fa-solid fa-chevron-down" href="javascript:;" title="Collapse docstring"></a><a class="docstring-binding" id="MultiScaleArrays.print_human_readable" href="#MultiScaleArrays.print_human_readable"><code>MultiScaleArrays.print_human_readable</code></a><span class="docstring-category">Function</span></header><section><div><pre><code class="language-julia hljs">print_human_readable(embryo)
5656
# +|Tissue; |Tissue
5757
# +|Popula; |Popula; |Popula; +|Popula; |Popula; |Popula
5858
# +Cell; Cell; Cell; +Cell; Cell; Cell; +Cell; Cell; Cell; +Cell; Cell; Cell; +Cell; Cell; Cell; +Cell; Cell; Cell
@@ -64,7 +64,7 @@
6464
# +|Ti; |Ti
6565
# +|Po; |Po; |Po; +|Po; |Po; |Po
6666
# +va: [1.0, 2.0, 3.0]; va: [3.0, 2.0, 5.0]; va: [4.0, 6.0]; +va: [1.0, 2.0, 3.0]; va: [3.0, 2.0, 5.0]; va: [4.0, 6.0]; +va: [1.0, 2.0, 3.0]; va: [3.0, 2.0, 5.0]; va: [4.0, 6.0]; +va: [1.0, 2.0, 3.0]; va: [3.0, 2.0, 5.0]; va: [4.0, 6.0]; +va: [1.0, 2.0, 3.0]; va: [3.0, 2.0, 5.0]; va: [4.0, 6.0]; +va: [1.0, 2.0, 3.0]; va: [3.0, 2.0, 5.0]; va: [4.0, 6.0]</code></pre><p>if your screen is small, then print a sub-part of the AbstractMultiScaleArray:</p><pre><code class="language-julia hljs">print_human_readable(embryo.nodes[1].nodes[1]; fields = [:values])
67-
# +values: [1.0, 2.0, 3.0]; values: [3.0, 2.0, 5.0]; values: [4.0, 6.0]</code></pre></div><a class="docs-sourcelink" target="_blank" href="https://github.com/SciML/MultiScaleArrays.jl/blob/7c38a1e03279bef5dcb221120a2f0f4e8cfe7058/src/print_human_readable.jl#L53-L81">source</a></section></article><h3 id="Extensions"><a class="docs-heading-anchor" href="#Extensions">Extensions</a><a id="Extensions-1"></a><a class="docs-heading-anchor-permalink" href="#Extensions" title="Permalink"></a></h3><p>Note that this only showed the most basic MultiScaleArray. These types can be extended as one pleases. For example, we can change the definition of the cell to have:</p><pre><code class="language-julia hljs">struct Cell{B} &lt;: AbstractMultiScaleArrayLeaf{B}
67+
# +values: [1.0, 2.0, 3.0]; values: [3.0, 2.0, 5.0]; values: [4.0, 6.0]</code></pre></div><a class="docs-sourcelink" target="_blank" href="https://github.com/SciML/MultiScaleArrays.jl/blob/22e1ba914adbd608dd4b5dd6347b4996d7f50b51/src/print_human_readable.jl#L53-L81">source</a></section></article><h3 id="Extensions"><a class="docs-heading-anchor" href="#Extensions">Extensions</a><a id="Extensions-1"></a><a class="docs-heading-anchor-permalink" href="#Extensions" title="Permalink"></a></h3><p>Note that this only showed the most basic MultiScaleArray. These types can be extended as one pleases. For example, we can change the definition of the cell to have:</p><pre><code class="language-julia hljs">struct Cell{B} &lt;: AbstractMultiScaleArrayLeaf{B}
6868
values::Vector{B}
6969
celltype::Symbol
7070
end</code></pre><p>Note that the ordering of the fields matters here: the extra fields must come after the standard fields (so for a leaf it comes after <code>values</code>, for a standard multiscale array it would come after <code>nodes,values,end_idxs</code>). Then we&#39;d construct cells with <code>cell3 = Cell([3.0; 2.0; 5.0], :BCell)</code>, and can give it a cell type. This information is part of the call, so</p><pre><code class="language-julia hljs">for (cell, y, z) in level_iter_idx(embryo, 2)
@@ -73,4 +73,4 @@
7373
f(t, tissue, @view embryo[y:z])
7474
end</code></pre><p>and mutate <code>tis.values</code> in <code>f</code>. For example, we could have</p><pre><code class="language-julia hljs">function f(du, tissue::Tissue, p, t)
7575
du .+= randn(3)
76-
end</code></pre><p>applies normal random numbers to the three values. We could use this to add to the model the fact that <code>tissue.values[1:3]</code> are the tissue&#39;s position, and <code>f</code> would then be adding Brownian motion.</p><p>Of course, you can keep going and kind of do whatever you want. The power is yours!</p></article><nav class="docs-footer"><a class="docs-footer-prevpage" href="../">« Home</a><div class="flexbox-break"></div><p class="footer-message">Powered by <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> and the <a href="https://julialang.org/">Julia Programming Language</a>.</p></nav></div><div class="modal" id="documenter-settings"><div class="modal-background"></div><div class="modal-card"><header class="modal-card-head"><p class="modal-card-title">Settings</p><button class="delete"></button></header><section class="modal-card-body"><p><label class="label">Theme</label><div class="select"><select id="documenter-themepicker"><option value="documenter-light">documenter-light</option><option value="documenter-dark">documenter-dark</option><option value="auto">Automatic (OS)</option></select></div></p><hr/><p>This document was generated with <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> version 1.2.1 on <span class="colophon-date" title="Friday 1 March 2024 09:11">Friday 1 March 2024</span>. Using Julia version 1.10.1.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html>
76+
end</code></pre><p>applies normal random numbers to the three values. We could use this to add to the model the fact that <code>tissue.values[1:3]</code> are the tissue&#39;s position, and <code>f</code> would then be adding Brownian motion.</p><p>Of course, you can keep going and kind of do whatever you want. The power is yours!</p></article><nav class="docs-footer"><a class="docs-footer-prevpage" href="../">« Home</a><div class="flexbox-break"></div><p class="footer-message">Powered by <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> and the <a href="https://julialang.org/">Julia Programming Language</a>.</p></nav></div><div class="modal" id="documenter-settings"><div class="modal-background"></div><div class="modal-card"><header class="modal-card-head"><p class="modal-card-title">Settings</p><button class="delete"></button></header><section class="modal-card-body"><p><label class="label">Theme</label><div class="select"><select id="documenter-themepicker"><option value="documenter-light">documenter-light</option><option value="documenter-dark">documenter-dark</option><option value="auto">Automatic (OS)</option></select></div></p><hr/><p>This document was generated with <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> version 1.2.1 on <span class="colophon-date" title="Friday 1 March 2024 10:02">Friday 1 March 2024</span>. Using Julia version 1.10.1.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html>

0 commit comments

Comments
 (0)