Skip to content

Commit 9014449

Browse files
author
github-actions
committed
auto: Rebuild docs.
1 parent 1e2608d commit 9014449

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+2406
-2756
lines changed

_examples/pybads_example_1_basic_usage.html

+73-77
Large diffs are not rendered by default.

_examples/pybads_example_2_nonbox_constraints.html

+55-64
Original file line numberDiff line numberDiff line change
@@ -16,29 +16,32 @@
1616
document.documentElement.dataset.mode = localStorage.getItem("mode") || "";
1717
document.documentElement.dataset.theme = localStorage.getItem("theme") || "";
1818
</script>
19-
20-
<!-- Loaded before other Sphinx assets -->
21-
<link href="../_static/styles/theme.css?digest=dfe6caa3a7d634c4db9b" rel="stylesheet" />
22-
<link href="../_static/styles/bootstrap.css?digest=dfe6caa3a7d634c4db9b" rel="stylesheet" />
23-
<link href="../_static/styles/pydata-sphinx-theme.css?digest=dfe6caa3a7d634c4db9b" rel="stylesheet" />
19+
<!--
20+
this give us a css class that will be invisible only if js is disabled
21+
-->
22+
<noscript>
23+
<style>
24+
.pst-js-only { display: none !important; }
2425

26+
</style>
27+
</noscript>
2528

26-
<link href="../_static/vendor/fontawesome/6.5.2/css/all.min.css?digest=dfe6caa3a7d634c4db9b" rel="stylesheet" />
27-
<link rel="preload" as="font" type="font/woff2" crossorigin href="../_static/vendor/fontawesome/6.5.2/webfonts/fa-solid-900.woff2" />
28-
<link rel="preload" as="font" type="font/woff2" crossorigin href="../_static/vendor/fontawesome/6.5.2/webfonts/fa-brands-400.woff2" />
29-
<link rel="preload" as="font" type="font/woff2" crossorigin href="../_static/vendor/fontawesome/6.5.2/webfonts/fa-regular-400.woff2" />
29+
<!-- Loaded before other Sphinx assets -->
30+
<link href="../_static/styles/theme.css?digest=8878045cc6db502f8baf" rel="stylesheet" />
31+
<link href="../_static/styles/pydata-sphinx-theme.css?digest=8878045cc6db502f8baf" rel="stylesheet" />
3032

31-
<link rel="stylesheet" type="text/css" href="../_static/pygments.css?v=a746c00c" />
33+
<link rel="stylesheet" type="text/css" href="../_static/pygments.css?v=8f2a1f02" />
3234
<link rel="stylesheet" type="text/css" href="../_static/styles/sphinx-book-theme.css?v=a3416100" />
3335
<link rel="stylesheet" type="text/css" href="../_static/mystnb.4510f1fc1dee50b3e5859aac5469c37c29e427902b24a333a5f9fcb2f0b3ac41.css" />
3436

37+
<!-- So that users can add custom icons -->
38+
<script src="../_static/scripts/fontawesome.js?digest=8878045cc6db502f8baf"></script>
3539
<!-- Pre-loaded scripts that we'll load fully later -->
36-
<link rel="preload" as="script" href="../_static/scripts/bootstrap.js?digest=dfe6caa3a7d634c4db9b" />
37-
<link rel="preload" as="script" href="../_static/scripts/pydata-sphinx-theme.js?digest=dfe6caa3a7d634c4db9b" />
38-
<script src="../_static/vendor/fontawesome/6.5.2/js/all.min.js?digest=dfe6caa3a7d634c4db9b"></script>
40+
<link rel="preload" as="script" href="../_static/scripts/bootstrap.js?digest=8878045cc6db502f8baf" />
41+
<link rel="preload" as="script" href="../_static/scripts/pydata-sphinx-theme.js?digest=8878045cc6db502f8baf" />
3942

4043
<script src="../_static/documentation_options.js?v=9eb32ce0"></script>
41-
<script src="../_static/doctools.js?v=9a2dae69"></script>
44+
<script src="../_static/doctools.js?v=9bcbadda"></script>
4245
<script src="../_static/sphinx_highlight.js?v=dc90522c"></script>
4346
<script src="../_static/scripts/sphinx-book-theme.js?v=887ef09a"></script>
4447
<script>window.MathJax = {"options": {"processHtmlClass": "tex2jax_process|mathjax_process|math|output_area"}}</script>
@@ -52,6 +55,7 @@
5255
<link rel="prev" title="PyBADS Example 1: Basic usage" href="pybads_example_1_basic_usage.html" />
5356
<meta name="viewport" content="width=device-width, initial-scale=1"/>
5457
<meta name="docsearch:language" content="en"/>
58+
<meta name="docsearch:version" content="" />
5559
</head>
5660

5761

@@ -67,36 +71,24 @@
6771
<i class="fa-solid fa-arrow-up"></i>Back to top</button>
6872

6973

70-
<input type="checkbox"
71-
class="sidebar-toggle"
72-
id="pst-primary-sidebar-checkbox"/>
73-
<label class="overlay overlay-primary" for="pst-primary-sidebar-checkbox"></label>
74-
75-
<input type="checkbox"
76-
class="sidebar-toggle"
77-
id="pst-secondary-sidebar-checkbox"/>
78-
<label class="overlay overlay-secondary" for="pst-secondary-sidebar-checkbox"></label>
79-
80-
<div class="search-button__wrapper">
81-
<div class="search-button__overlay"></div>
82-
<div class="search-button__search-container">
74+
<dialog id="pst-search-dialog">
75+
8376
<form class="bd-search d-flex align-items-center"
8477
action="../search.html"
8578
method="get">
8679
<i class="fa-solid fa-magnifying-glass"></i>
8780
<input type="search"
8881
class="form-control"
8982
name="q"
90-
id="search-input"
9183
placeholder="Search..."
9284
aria-label="Search..."
9385
autocomplete="off"
9486
autocorrect="off"
9587
autocapitalize="off"
9688
spellcheck="false"/>
9789
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
98-
</form></div>
99-
</div>
90+
</form>
91+
</dialog>
10092

10193
<div class="pst-async-banner-revealer d-none">
10294
<aside id="bd-header-version-warning" class="d-none d-print-none" aria-label="Version warning"></aside>
@@ -112,7 +104,8 @@
112104

113105

114106

115-
<div class="bd-sidebar-primary bd-sidebar">
107+
<dialog id="pst-primary-sidebar-modal"></dialog>
108+
<div id="pst-primary-sidebar" class="bd-sidebar-primary bd-sidebar">
116109

117110

118111

@@ -142,15 +135,11 @@
142135
</a></div>
143136
<div class="sidebar-primary-item">
144137

145-
<script>
146-
document.write(`
147-
<button class="btn search-button-field search-button__button" title="Search" aria-label="Search" data-bs-placement="bottom" data-bs-toggle="tooltip">
148-
<i class="fa-solid fa-magnifying-glass"></i>
149-
<span class="search-button__default-text">Search</span>
150-
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd class="kbd-shortcut__modifier">K</kbd></span>
151-
</button>
152-
`);
153-
</script></div>
138+
<button class="btn search-button-field search-button__button pst-js-only" title="Search" aria-label="Search" data-bs-placement="bottom" data-bs-toggle="tooltip">
139+
<i class="fa-solid fa-magnifying-glass"></i>
140+
<span class="search-button__default-text">Search</span>
141+
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd class="kbd-shortcut__modifier">K</kbd></span>
142+
</button></div>
154143
<div class="sidebar-primary-item"><nav class="bd-links bd-docs-nav" aria-label="Main">
155144
<div class="bd-toc-item navbar-nav active">
156145
<ul class="current nav bd-sidenav">
@@ -204,9 +193,14 @@
204193

205194

206195
<div class="sidebar-primary-items__end sidebar-primary__section">
196+
<div class="sidebar-primary-item">
197+
<div id="ethical-ad-placement"
198+
class="flat"
199+
data-ea-publisher="readthedocs"
200+
data-ea-type="readthedocs-sidebar"
201+
data-ea-manual="true">
202+
</div></div>
207203
</div>
208-
209-
<div id="rtd-footer-container"></div>
210204

211205

212206
</div>
@@ -416,24 +410,16 @@
416410

417411

418412

419-
<script>
420-
document.write(`
421-
<button class="btn btn-sm nav-link pst-navbar-icon theme-switch-button" title="light/dark" aria-label="light/dark" data-bs-placement="bottom" data-bs-toggle="tooltip">
422-
<i class="theme-switch fa-solid fa-sun fa-lg" data-mode="light"></i>
423-
<i class="theme-switch fa-solid fa-moon fa-lg" data-mode="dark"></i>
424-
<i class="theme-switch fa-solid fa-circle-half-stroke fa-lg" data-mode="auto"></i>
425-
</button>
426-
`);
427-
</script>
413+
<button class="btn btn-sm nav-link pst-navbar-icon theme-switch-button pst-js-only" aria-label="Color mode" data-bs-title="Color mode" data-bs-placement="bottom" data-bs-toggle="tooltip">
414+
<i class="theme-switch fa-solid fa-sun fa-lg" data-mode="light" title="Light"></i>
415+
<i class="theme-switch fa-solid fa-moon fa-lg" data-mode="dark" title="Dark"></i>
416+
<i class="theme-switch fa-solid fa-circle-half-stroke fa-lg" data-mode="auto" title="System Settings"></i>
417+
</button>
428418

429419

430-
<script>
431-
document.write(`
432-
<button class="btn btn-sm pst-navbar-icon search-button search-button__button" title="Search" aria-label="Search" data-bs-placement="bottom" data-bs-toggle="tooltip">
420+
<button class="btn btn-sm pst-navbar-icon search-button search-button__button pst-js-only" title="Search" aria-label="Search" data-bs-placement="bottom" data-bs-toggle="tooltip">
433421
<i class="fa-solid fa-magnifying-glass fa-lg"></i>
434-
</button>
435-
`);
436-
</script>
422+
</button>
437423
<button class="sidebar-toggle secondary-toggle btn btn-sm" title="Toggle secondary sidebar" data-bs-placement="bottom" data-bs-toggle="tooltip">
438424
<span class="fa-solid fa-list"></span>
439425
</button>
@@ -482,8 +468,8 @@ <h1>PyBADS Example 2: Non-box constraints<a class="headerlink" href="#pybads-exa
482468
The code used in this example is available as a script <a class="reference download internal" download="" href="../_downloads/f3c67215dbe688f40d2a84390d9ecb79/pybads_example_2_nonbox_constraints.py"><span class="xref download myst">here</span></a>.</p>
483469
<div class="cell docutils container">
484470
<div class="cell_input docutils container">
485-
<div class="highlight-ipython3 notranslate"><div class="highlight"><pre><span></span><span class="kn">import</span> <span class="nn">numpy</span> <span class="k">as</span> <span class="nn">np</span>
486-
<span class="kn">from</span> <span class="nn">pybads</span> <span class="kn">import</span> <span class="n">BADS</span>
471+
<div class="highlight-ipython3 notranslate"><div class="highlight"><pre><span></span><span class="kn">import</span><span class="w"> </span><span class="nn">numpy</span><span class="w"> </span><span class="k">as</span><span class="w"> </span><span class="nn">np</span>
472+
<span class="kn">from</span><span class="w"> </span><span class="nn">pybads</span><span class="w"> </span><span class="kn">import</span> <span class="n">BADS</span>
487473
</pre></div>
488474
</div>
489475
</div>
@@ -510,7 +496,7 @@ <h2>1. Problem setup<a class="headerlink" href="#problem-setup" title="Link to t
510496
<p>where <span class="math notranslate nohighlight">\(M\)</span> is an arbitrary number of inputs.</p>
511497
<div class="cell docutils container">
512498
<div class="cell_input docutils container">
513-
<div class="highlight-ipython3 notranslate"><div class="highlight"><pre><span></span><span class="k">def</span> <span class="nf">rosenbrocks_fcn</span><span class="p">(</span><span class="n">x</span><span class="p">):</span>
499+
<div class="highlight-ipython3 notranslate"><div class="highlight"><pre><span></span><span class="k">def</span><span class="w"> </span><span class="nf">rosenbrocks_fcn</span><span class="p">(</span><span class="n">x</span><span class="p">):</span>
514500
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Rosenbrock&#39;s &#39;banana&#39; function in any dimension.&quot;&quot;&quot;</span>
515501
<span class="n">x_2d</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">atleast_2d</span><span class="p">(</span><span class="n">x</span><span class="p">)</span>
516502
<span class="k">return</span> <span class="n">np</span><span class="o">.</span><span class="n">sum</span><span class="p">(</span><span class="mi">100</span> <span class="o">*</span> <span class="p">(</span><span class="n">x_2d</span><span class="p">[:,</span> <span class="mi">0</span><span class="p">:</span><span class="o">-</span><span class="mi">1</span><span class="p">]</span><span class="o">**</span><span class="mi">2</span> <span class="o">-</span> <span class="n">x_2d</span><span class="p">[:,</span> <span class="mi">1</span><span class="p">:])</span><span class="o">**</span><span class="mi">2</span> <span class="o">+</span> <span class="p">(</span><span class="n">x_2d</span><span class="p">[:,</span> <span class="mi">0</span><span class="p">:</span><span class="o">-</span><span class="mi">1</span><span class="p">]</span><span class="o">-</span><span class="mi">1</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>
@@ -519,7 +505,7 @@ <h2>1. Problem setup<a class="headerlink" href="#problem-setup" title="Link to t
519505
<span class="n">lower_bounds</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">array</span><span class="p">([</span><span class="o">-</span><span class="mi">1</span><span class="p">,</span> <span class="o">-</span><span class="mi">1</span><span class="p">])</span>
520506
<span class="n">upper_bounds</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">array</span><span class="p">([</span><span class="mi">1</span><span class="p">,</span> <span class="mi">1</span><span class="p">])</span>
521507

522-
<span class="k">def</span> <span class="nf">circle_constr</span><span class="p">(</span><span class="n">x</span><span class="p">):</span>
508+
<span class="k">def</span><span class="w"> </span><span class="nf">circle_constr</span><span class="p">(</span><span class="n">x</span><span class="p">):</span>
523509
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Return constraints violation outside the unit circle.&quot;&quot;&quot;</span>
524510
<span class="n">x_2d</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">atleast_2d</span><span class="p">(</span><span class="n">x</span><span class="p">)</span>
525511
<span class="c1"># Note that nonboxcons assumes the function takes a 2D input </span>
@@ -644,7 +630,8 @@ <h3>Remarks<a class="headerlink" href="#remarks" title="Link to this heading">#<
644630

645631

646632

647-
<div class="bd-sidebar-secondary bd-toc"><div class="sidebar-secondary-items sidebar-secondary__inner">
633+
<dialog id="pst-secondary-sidebar-modal"></dialog>
634+
<div id="pst-secondary-sidebar" class="bd-sidebar-secondary bd-toc"><div class="sidebar-secondary-items sidebar-secondary__inner">
648635

649636

650637
<div class="sidebar-secondary-item">
@@ -673,6 +660,10 @@ <h3>Remarks<a class="headerlink" href="#remarks" title="Link to this heading">#<
673660

674661
<div class="footer-item">
675662

663+
<p class="component-author">
664+
By Author name not set
665+
</p>
666+
676667
</div>
677668

678669
<div class="footer-item">
@@ -704,8 +695,8 @@ <h3>Remarks<a class="headerlink" href="#remarks" title="Link to this heading">#<
704695
</div>
705696

706697
<!-- Scripts loaded after <body> so the DOM is not blocked -->
707-
<script src="../_static/scripts/bootstrap.js?digest=dfe6caa3a7d634c4db9b"></script>
708-
<script src="../_static/scripts/pydata-sphinx-theme.js?digest=dfe6caa3a7d634c4db9b"></script>
698+
<script defer src="../_static/scripts/bootstrap.js?digest=8878045cc6db502f8baf"></script>
699+
<script defer src="../_static/scripts/pydata-sphinx-theme.js?digest=8878045cc6db502f8baf"></script>
709700

710701
<footer class="bd-footer">
711702
</footer>

0 commit comments

Comments
 (0)