Skip to content

Commit

Permalink
Deploy docs to develop by GitHub Actions triggered by e9ab4e3
Browse files Browse the repository at this point in the history
  • Loading branch information
PHYSBO Developers committed Aug 20, 2024
1 parent 8b88479 commit e80fbe0
Show file tree
Hide file tree
Showing 113 changed files with 158 additions and 142 deletions.
2 changes: 1 addition & 1 deletion manual/develop/en/.buildinfo
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: 8db39072784f93b45d6f52c98741da06
config: 58f1e14def66b03b26fe86aabae46fd5
tags: 645f666f9bcd5a90fca523b33c5a78b7
14 changes: 9 additions & 5 deletions manual/develop/en/_modules/physbo/search/discrete/policy.html
Original file line number Diff line number Diff line change
Expand Up @@ -228,11 +228,15 @@ <h1>Source code for physbo.search.discrete.policy</h1><div class="highlight"><pr
<span class="n">time_run_simulator</span><span class="o">=</span><span class="n">time_run_simulator</span><span class="p">,</span>
<span class="p">)</span>
<span class="bp">self</span><span class="o">.</span><span class="n">training</span><span class="o">.</span><span class="n">add</span><span class="p">(</span><span class="n">X</span><span class="o">=</span><span class="n">X</span><span class="p">,</span> <span class="n">t</span><span class="o">=</span><span class="n">t</span><span class="p">,</span> <span class="n">Z</span><span class="o">=</span><span class="n">Z</span><span class="p">)</span>
<span class="n">local_index</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">searchsorted</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">actions</span><span class="p">,</span> <span class="n">action</span><span class="p">)</span>
<span class="n">local_index</span> <span class="o">=</span> <span class="n">local_index</span><span class="p">[</span>
<span class="n">np</span><span class="o">.</span><span class="n">take</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">actions</span><span class="p">,</span> <span class="n">local_index</span><span class="p">,</span> <span class="n">mode</span><span class="o">=</span><span class="s2">&quot;clip&quot;</span><span class="p">)</span> <span class="o">==</span> <span class="n">action</span>
<span class="p">]</span>
<span class="bp">self</span><span class="o">.</span><span class="n">actions</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">_delete_actions</span><span class="p">(</span><span class="n">local_index</span><span class="p">)</span>

<span class="c1"># remove the selected actions from the list of candidates if exists</span>
<span class="k">if</span> <span class="nb">len</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">actions</span><span class="p">)</span> <span class="o">&gt;</span> <span class="mi">0</span><span class="p">:</span>
<span class="n">local_index</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">searchsorted</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">actions</span><span class="p">,</span> <span class="n">action</span><span class="p">)</span>
<span class="n">local_index</span> <span class="o">=</span> <span class="n">local_index</span><span class="p">[</span>
<span class="n">np</span><span class="o">.</span><span class="n">take</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">actions</span><span class="p">,</span> <span class="n">local_index</span><span class="p">,</span> <span class="n">mode</span><span class="o">=</span><span class="s2">&quot;clip&quot;</span><span class="p">)</span> <span class="o">==</span> <span class="n">action</span>
<span class="p">]</span>
<span class="bp">self</span><span class="o">.</span><span class="n">actions</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">_delete_actions</span><span class="p">(</span><span class="n">local_index</span><span class="p">)</span>

<span class="k">if</span> <span class="bp">self</span><span class="o">.</span><span class="n">new_data</span> <span class="ow">is</span> <span class="kc">None</span><span class="p">:</span>
<span class="bp">self</span><span class="o">.</span><span class="n">new_data</span> <span class="o">=</span> <span class="n">variable</span><span class="p">(</span><span class="n">X</span><span class="o">=</span><span class="n">X</span><span class="p">,</span> <span class="n">t</span><span class="o">=</span><span class="n">t</span><span class="p">,</span> <span class="n">Z</span><span class="o">=</span><span class="n">Z</span><span class="p">)</span>
<span class="k">else</span><span class="p">:</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -193,11 +193,14 @@ <h1>Source code for physbo.search.discrete_multi.policy</h1><div class="highligh
<span class="k">else</span><span class="p">:</span>
<span class="bp">self</span><span class="o">.</span><span class="n">new_data_list</span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="o">.</span><span class="n">add</span><span class="p">(</span><span class="n">X</span><span class="o">=</span><span class="n">X</span><span class="p">,</span> <span class="n">t</span><span class="o">=</span><span class="n">t</span><span class="p">[:,</span> <span class="n">i</span><span class="p">],</span> <span class="n">Z</span><span class="o">=</span><span class="n">Z</span><span class="p">)</span>
<span class="bp">self</span><span class="o">.</span><span class="n">training_list</span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="o">.</span><span class="n">add</span><span class="p">(</span><span class="n">X</span><span class="o">=</span><span class="n">X</span><span class="p">,</span> <span class="n">t</span><span class="o">=</span><span class="n">t</span><span class="p">[:,</span> <span class="n">i</span><span class="p">],</span> <span class="n">Z</span><span class="o">=</span><span class="n">Z</span><span class="p">)</span>
<span class="n">local_index</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">searchsorted</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">actions</span><span class="p">,</span> <span class="n">action</span><span class="p">)</span>
<span class="n">local_index</span> <span class="o">=</span> <span class="n">local_index</span><span class="p">[</span>
<span class="n">np</span><span class="o">.</span><span class="n">take</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">actions</span><span class="p">,</span> <span class="n">local_index</span><span class="p">,</span> <span class="n">mode</span><span class="o">=</span><span class="s2">&quot;clip&quot;</span><span class="p">)</span> <span class="o">==</span> <span class="n">action</span>
<span class="p">]</span>
<span class="bp">self</span><span class="o">.</span><span class="n">actions</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">_delete_actions</span><span class="p">(</span><span class="n">local_index</span><span class="p">)</span></div>

<span class="c1"># remove action from candidates if exists</span>
<span class="k">if</span> <span class="nb">len</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">actions</span><span class="p">)</span> <span class="o">&gt;</span> <span class="mi">0</span><span class="p">:</span>
<span class="n">local_index</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">searchsorted</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">actions</span><span class="p">,</span> <span class="n">action</span><span class="p">)</span>
<span class="n">local_index</span> <span class="o">=</span> <span class="n">local_index</span><span class="p">[</span>
<span class="n">np</span><span class="o">.</span><span class="n">take</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">actions</span><span class="p">,</span> <span class="n">local_index</span><span class="p">,</span> <span class="n">mode</span><span class="o">=</span><span class="s2">&quot;clip&quot;</span><span class="p">)</span> <span class="o">==</span> <span class="n">action</span>
<span class="p">]</span>
<span class="bp">self</span><span class="o">.</span><span class="n">actions</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">_delete_actions</span><span class="p">(</span><span class="n">local_index</span><span class="p">)</span></div>


<span class="k">def</span> <span class="nf">_model</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">i</span><span class="p">):</span>
Expand Down
7 changes: 4 additions & 3 deletions manual/develop/en/_static/searchtools.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ const Search = {

htmlToText: (htmlString, anchor) => {
const htmlElement = new DOMParser().parseFromString(htmlString, 'text/html');
for (const removalQuery of [".headerlinks", "script", "style"]) {
for (const removalQuery of [".headerlink", "script", "style"]) {
htmlElement.querySelectorAll(removalQuery).forEach((el) => { el.remove() });
}
if (anchor) {
Expand Down Expand Up @@ -328,13 +328,14 @@ const Search = {
for (const [title, foundTitles] of Object.entries(allTitles)) {
if (title.toLowerCase().trim().includes(queryLower) && (queryLower.length >= title.length/2)) {
for (const [file, id] of foundTitles) {
let score = Math.round(100 * queryLower.length / title.length)
const score = Math.round(Scorer.title * queryLower.length / title.length);
const boost = titles[file] === title ? 1 : 0; // add a boost for document titles
normalResults.push([
docNames[file],
titles[file] !== title ? `${titles[file]} > ${title}` : title,
id !== null ? "#" + id : "",
null,
score,
score + boost,
filenames[file],
]);
}
Expand Down
2 changes: 1 addition & 1 deletion manual/develop/en/notebook/tutorial_Gaussian_process.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<title>Gaussian process &mdash; PHYSBO 2.0.0 documentation</title>
<link rel="stylesheet" type="text/css" href="../_static/pygments.css?v=fa44fd50" />
<link rel="stylesheet" type="text/css" href="../_static/css/theme.css?v=19f00094" />
<link rel="stylesheet" type="text/css" href="../_static/nbsphinx-code-cells.css" />
<link rel="stylesheet" type="text/css" href="../_static/nbsphinx-code-cells.css?v=2aa19091" />


<!--[if lt IE 9]>
Expand Down
2 changes: 1 addition & 1 deletion manual/develop/en/notebook/tutorial_basic.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<title>Basic usage of PHYSBO &mdash; PHYSBO 2.0.0 documentation</title>
<link rel="stylesheet" type="text/css" href="../_static/pygments.css?v=fa44fd50" />
<link rel="stylesheet" type="text/css" href="../_static/css/theme.css?v=19f00094" />
<link rel="stylesheet" type="text/css" href="../_static/nbsphinx-code-cells.css" />
<link rel="stylesheet" type="text/css" href="../_static/nbsphinx-code-cells.css?v=2aa19091" />


<!--[if lt IE 9]>
Expand Down
2 changes: 1 addition & 1 deletion manual/develop/en/notebook/tutorial_basic_org.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<title>Basic usage of PHYSBO &mdash; PHYSBO 2.0.0 documentation</title>
<link rel="stylesheet" type="text/css" href="../_static/pygments.css?v=fa44fd50" />
<link rel="stylesheet" type="text/css" href="../_static/css/theme.css?v=19f00094" />
<link rel="stylesheet" type="text/css" href="../_static/nbsphinx-code-cells.css" />
<link rel="stylesheet" type="text/css" href="../_static/nbsphinx-code-cells.css?v=2aa19091" />


<!--[if lt IE 9]>
Expand Down
2 changes: 1 addition & 1 deletion manual/develop/en/notebook/tutorial_interactive_mode.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<title>Running PHYSBO interactively &mdash; PHYSBO 2.0.0 documentation</title>
<link rel="stylesheet" type="text/css" href="../_static/pygments.css?v=fa44fd50" />
<link rel="stylesheet" type="text/css" href="../_static/css/theme.css?v=19f00094" />
<link rel="stylesheet" type="text/css" href="../_static/nbsphinx-code-cells.css" />
<link rel="stylesheet" type="text/css" href="../_static/nbsphinx-code-cells.css?v=2aa19091" />


<!--[if lt IE 9]>
Expand Down
2 changes: 1 addition & 1 deletion manual/develop/en/notebook/tutorial_multi_objective.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<title>Multi-objective optimization &mdash; PHYSBO 2.0.0 documentation</title>
<link rel="stylesheet" type="text/css" href="../_static/pygments.css?v=fa44fd50" />
<link rel="stylesheet" type="text/css" href="../_static/css/theme.css?v=19f00094" />
<link rel="stylesheet" type="text/css" href="../_static/nbsphinx-code-cells.css" />
<link rel="stylesheet" type="text/css" href="../_static/nbsphinx-code-cells.css?v=2aa19091" />


<!--[if lt IE 9]>
Expand Down
2 changes: 1 addition & 1 deletion manual/develop/en/notebook/tutorial_multi_probe.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<title>Search multiple candidates at once &mdash; PHYSBO 2.0.0 documentation</title>
<link rel="stylesheet" type="text/css" href="../_static/pygments.css?v=fa44fd50" />
<link rel="stylesheet" type="text/css" href="../_static/css/theme.css?v=19f00094" />
<link rel="stylesheet" type="text/css" href="../_static/nbsphinx-code-cells.css" />
<link rel="stylesheet" type="text/css" href="../_static/nbsphinx-code-cells.css?v=2aa19091" />


<!--[if lt IE 9]>
Expand Down
2 changes: 1 addition & 1 deletion manual/develop/en/notebook/tutorial_once_mode.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<title>Restart calculations by reading existing calculation results &mdash; PHYSBO 2.0.0 documentation</title>
<link rel="stylesheet" type="text/css" href="../_static/pygments.css?v=fa44fd50" />
<link rel="stylesheet" type="text/css" href="../_static/css/theme.css?v=19f00094" />
<link rel="stylesheet" type="text/css" href="../_static/nbsphinx-code-cells.css" />
<link rel="stylesheet" type="text/css" href="../_static/nbsphinx-code-cells.css?v=2aa19091" />


<!--[if lt IE 9]>
Expand Down
2 changes: 1 addition & 1 deletion manual/develop/en/searchindex.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion manual/develop/ja/.buildinfo
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: b9b6dcc60136fb8e25f30e090cb49a8a
config: 0ef9267a9d7c6e21f7ce7232c3ae7042
tags: 645f666f9bcd5a90fca523b33c5a78b7
2 changes: 1 addition & 1 deletion manual/develop/ja/_modules/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<script src="../_static/documentation_options.js?v=c8adcb1d"></script>
<script src="../_static/doctools.js?v=9a2dae69"></script>
<script src="../_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="../_static/translations.js?v=4dbe4bdc"></script>
<script src="../_static/translations.js?v=91613774"></script>
<script crossorigin="anonymous" integrity="sha256-Ae2Vz/4ePdIu6ZyI/5ZGsYnb+m0JlOmKPjt6XZ9JJkA=" src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.4/require.min.js"></script>
<script src="../_static/js/theme.js"></script>
<link rel="index" title="索引" href="../genindex.html" />
Expand Down
2 changes: 1 addition & 1 deletion manual/develop/ja/_modules/physbo/blm/basis/fourier.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<script src="../../../../_static/documentation_options.js?v=c8adcb1d"></script>
<script src="../../../../_static/doctools.js?v=9a2dae69"></script>
<script src="../../../../_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="../../../../_static/translations.js?v=4dbe4bdc"></script>
<script src="../../../../_static/translations.js?v=91613774"></script>
<script crossorigin="anonymous" integrity="sha256-Ae2Vz/4ePdIu6ZyI/5ZGsYnb+m0JlOmKPjt6XZ9JJkA=" src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.4/require.min.js"></script>
<script src="../../../../_static/js/theme.js"></script>
<link rel="index" title="索引" href="../../../../genindex.html" />
Expand Down
2 changes: 1 addition & 1 deletion manual/develop/ja/_modules/physbo/blm/core/model.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<script src="../../../../_static/documentation_options.js?v=c8adcb1d"></script>
<script src="../../../../_static/doctools.js?v=9a2dae69"></script>
<script src="../../../../_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="../../../../_static/translations.js?v=4dbe4bdc"></script>
<script src="../../../../_static/translations.js?v=91613774"></script>
<script crossorigin="anonymous" integrity="sha256-Ae2Vz/4ePdIu6ZyI/5ZGsYnb+m0JlOmKPjt6XZ9JJkA=" src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.4/require.min.js"></script>
<script src="../../../../_static/js/theme.js"></script>
<link rel="index" title="索引" href="../../../../genindex.html" />
Expand Down
2 changes: 1 addition & 1 deletion manual/develop/ja/_modules/physbo/blm/inf/exact.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<script src="../../../../_static/documentation_options.js?v=c8adcb1d"></script>
<script src="../../../../_static/doctools.js?v=9a2dae69"></script>
<script src="../../../../_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="../../../../_static/translations.js?v=4dbe4bdc"></script>
<script src="../../../../_static/translations.js?v=91613774"></script>
<script crossorigin="anonymous" integrity="sha256-Ae2Vz/4ePdIu6ZyI/5ZGsYnb+m0JlOmKPjt6XZ9JJkA=" src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.4/require.min.js"></script>
<script src="../../../../_static/js/theme.js"></script>
<link rel="index" title="索引" href="../../../../genindex.html" />
Expand Down
2 changes: 1 addition & 1 deletion manual/develop/ja/_modules/physbo/blm/lik/gauss.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<script src="../../../../_static/documentation_options.js?v=c8adcb1d"></script>
<script src="../../../../_static/doctools.js?v=9a2dae69"></script>
<script src="../../../../_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="../../../../_static/translations.js?v=4dbe4bdc"></script>
<script src="../../../../_static/translations.js?v=91613774"></script>
<script crossorigin="anonymous" integrity="sha256-Ae2Vz/4ePdIu6ZyI/5ZGsYnb+m0JlOmKPjt6XZ9JJkA=" src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.4/require.min.js"></script>
<script src="../../../../_static/js/theme.js"></script>
<link rel="index" title="索引" href="../../../../genindex.html" />
Expand Down
2 changes: 1 addition & 1 deletion manual/develop/ja/_modules/physbo/blm/lik/linear.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<script src="../../../../_static/documentation_options.js?v=c8adcb1d"></script>
<script src="../../../../_static/doctools.js?v=9a2dae69"></script>
<script src="../../../../_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="../../../../_static/translations.js?v=4dbe4bdc"></script>
<script src="../../../../_static/translations.js?v=91613774"></script>
<script crossorigin="anonymous" integrity="sha256-Ae2Vz/4ePdIu6ZyI/5ZGsYnb+m0JlOmKPjt6XZ9JJkA=" src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.4/require.min.js"></script>
<script src="../../../../_static/js/theme.js"></script>
<link rel="index" title="索引" href="../../../../genindex.html" />
Expand Down
2 changes: 1 addition & 1 deletion manual/develop/ja/_modules/physbo/blm/predictor.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<script src="../../../_static/documentation_options.js?v=c8adcb1d"></script>
<script src="../../../_static/doctools.js?v=9a2dae69"></script>
<script src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="../../../_static/translations.js?v=4dbe4bdc"></script>
<script src="../../../_static/translations.js?v=91613774"></script>
<script crossorigin="anonymous" integrity="sha256-Ae2Vz/4ePdIu6ZyI/5ZGsYnb+m0JlOmKPjt6XZ9JJkA=" src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.4/require.min.js"></script>
<script src="../../../_static/js/theme.js"></script>
<link rel="index" title="索引" href="../../../genindex.html" />
Expand Down
2 changes: 1 addition & 1 deletion manual/develop/ja/_modules/physbo/blm/prior/gauss.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<script src="../../../../_static/documentation_options.js?v=c8adcb1d"></script>
<script src="../../../../_static/doctools.js?v=9a2dae69"></script>
<script src="../../../../_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="../../../../_static/translations.js?v=4dbe4bdc"></script>
<script src="../../../../_static/translations.js?v=91613774"></script>
<script crossorigin="anonymous" integrity="sha256-Ae2Vz/4ePdIu6ZyI/5ZGsYnb+m0JlOmKPjt6XZ9JJkA=" src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.4/require.min.js"></script>
<script src="../../../../_static/js/theme.js"></script>
<link rel="index" title="索引" href="../../../../genindex.html" />
Expand Down
Loading

0 comments on commit e80fbe0

Please sign in to comment.