CBD.simulator.html 45 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807
  1. <!DOCTYPE html>
  2. <!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
  3. <!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
  4. <head>
  5. <meta charset="utf-8">
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <title>CBD.simulator module &mdash; CBD Simulation Development Kit documentation</title>
  8. <link rel="stylesheet" href="_static/css/theme.css" type="text/css" />
  9. <!-- <link rel="stylesheet" href="_static/pygments.css" type="text/css" /> -->
  10. <link rel="stylesheet" href="_static/style.css" type="text/css" />
  11. <link rel="index" title="Index" href="genindex.html" />
  12. <link rel="search" title="Search" href="search.html" />
  13. <link rel="next" title="CBD.solver module" href="CBD.solver.html" />
  14. <link rel="prev" title="CBD.depGraph module" href="CBD.depGraph.html" />
  15. <script async src="https://www.googletagmanager.com/gtag/js?id=UA-167094275-1"></script>
  16. <script src="_static/js/googleanalytics.min.js"></script>
  17. <script src="_static/js/modernizr.min.js"></script>
  18. <!-- Preload the theme fonts -->
  19. <link rel="preload" href="_static/fonts/FreightSans/freight-sans-book.woff2" as="font" type="font/woff2" crossorigin="anonymous">
  20. <link rel="preload" href="_static/fonts/FreightSans/freight-sans-medium.woff2" as="font" type="font/woff2" crossorigin="anonymous">
  21. <link rel="preload" href="_static/fonts/IBMPlexMono/IBMPlexMono-Medium.woff2" as="font" type="font/woff2" crossorigin="anonymous">
  22. <link rel="preload" href="_static/fonts/FreightSans/freight-sans-bold.woff2" as="font" type="font/woff2" crossorigin="anonymous">
  23. <link rel="preload" href="_static/fonts/FreightSans/freight-sans-medium-italic.woff2" as="font" type="font/woff2" crossorigin="anonymous">
  24. <link rel="preload" href="_static/fonts/IBMPlexMono/IBMPlexMono-SemiBold.woff2" as="font" type="font/woff2" crossorigin="anonymous">
  25. <!-- Preload the katex fonts -->
  26. <link rel="preload" href="https://cdn.jsdelivr.net/npm/katex@0.10.0/dist/fonts/KaTeX_Math-Italic.woff2" as="font" type="font/woff2" crossorigin="anonymous">
  27. <link rel="preload" href="https://cdn.jsdelivr.net/npm/katex@0.10.0/dist/fonts/KaTeX_Main-Regular.woff2" as="font" type="font/woff2" crossorigin="anonymous">
  28. <link rel="preload" href="https://cdn.jsdelivr.net/npm/katex@0.10.0/dist/fonts/KaTeX_Main-Bold.woff2" as="font" type="font/woff2" crossorigin="anonymous">
  29. <link rel="preload" href="https://cdn.jsdelivr.net/npm/katex@0.10.0/dist/fonts/KaTeX_Size1-Regular.woff2" as="font" type="font/woff2" crossorigin="anonymous">
  30. <link rel="preload" href="https://cdn.jsdelivr.net/npm/katex@0.10.0/dist/fonts/KaTeX_Size4-Regular.woff2" as="font" type="font/woff2" crossorigin="anonymous">
  31. <link rel="preload" href="https://cdn.jsdelivr.net/npm/katex@0.10.0/dist/fonts/KaTeX_Size2-Regular.woff2" as="font" type="font/woff2" crossorigin="anonymous">
  32. <link rel="preload" href="https://cdn.jsdelivr.net/npm/katex@0.10.0/dist/fonts/KaTeX_Size3-Regular.woff2" as="font" type="font/woff2" crossorigin="anonymous">
  33. <link rel="preload" href="https://cdn.jsdelivr.net/npm/katex@0.10.0/dist/fonts/KaTeX_Caligraphic-Regular.woff2" as="font" type="font/woff2" crossorigin="anonymous">
  34. </head>
  35. <div class="container-fluid header-holder tutorials-header" id="header-holder">
  36. <div class="container">
  37. <div class="header-container">
  38. <a class="header-logo" href="https://catalyst-team.com/" aria-label="Catalyst"></a>
  39. <div class="main-menu">
  40. <ul>
  41. <li>
  42. <div class="ecosystem-dropdown">
  43. <a id="dropdownMenuButtonEcosystem" data-toggle="ecosystem-dropdown">
  44. Ecosystem
  45. </a>
  46. <div class="ecosystem-dropdown-menu">
  47. <a class="nav-dropdown-item" href="https://alchemy.host">
  48. <span class=dropdown-title>Alchemy</span>
  49. <p>Experiments logging & visualization</p>
  50. </a>
  51. <a class="nav-dropdown-item" href="https://github.com/catalyst-team/catalyst">
  52. <span class=dropdown-title>Catalyst</span>
  53. <p>Accelerated deep learning R&D</p>
  54. </a>
  55. <a class="nav-dropdown-item" href="https://github.com/catalyst-team/reaction">
  56. <span class=dropdown-title>Reaction</span>
  57. <p>Convenient deep learning models serving</p>
  58. </a>
  59. </div>
  60. </div>
  61. </li>
  62. <li>
  63. <div class="projects-dropdown">
  64. <a id="dropdownMenuButtonProjects" data-toggle="projects-dropdown">
  65. Projects
  66. </a>
  67. <div class="projects-dropdown-menu">
  68. <a class="nav-dropdown-item" href="https://github.com/catalyst-team/codestyle">
  69. <span class=dropdown-title>Codestyle</span>
  70. <p>Joint R&D codestyle</p>
  71. </a>
  72. <a class="nav-dropdown-item" href="https://github.com/catalyst-team/neuro">
  73. <span class=dropdown-title>Catalyst.Neuro</span>
  74. <p>Catalyst.Team and TReNDS collaborative project</p>
  75. </a>
  76. <a class="nav-dropdown-item" href="https://github.com/catalyst-team/classification">
  77. <span class=dropdown-title>Classification</span>
  78. <p>Image classification pipeline with transfer learning</p>
  79. </a>
  80. <a class="nav-dropdown-item" href="https://github.com/catalyst-team/detection">
  81. <span class=dropdown-title>Detection</span>
  82. <p>Object detection pipeline</p>
  83. </a>
  84. <a class="nav-dropdown-item" href="https://github.com/catalyst-team/segmentation">
  85. <span class=dropdown-title>Segmentation</span>
  86. <p>Image semantic segmentation pipeline</p>
  87. </a>
  88. <a class="nav-dropdown-item" href="https://github.com/catalyst-team/gan">
  89. <span class=dropdown-title>Catalyst.GAN</span>
  90. <p>GAN pipelines</p>
  91. </a>
  92. </div>
  93. </div>
  94. </li>
  95. <li>
  96. <a href="https://github.com/catalyst-team/dl-course">Deep learning course</a>
  97. </li>
  98. </ul>
  99. </div>
  100. <a class="main-menu-open-button" href="#" data-behavior="open-mobile-menu"></a>
  101. </div>
  102. </div>
  103. </div>
  104. <body class="catalyst-body">
  105. <div class="table-of-contents-link-wrapper">
  106. <span>Table of Contents</span>
  107. <a href="#" class="toggle-table-of-contents" data-behavior="toggle-table-of-contents"></a>
  108. </div>
  109. <nav data-toggle="wy-nav-shift" class="catalyst-left-menu" id="catalyst-left-menu">
  110. <div class="catalyst-side-scroll">
  111. <div class="catalyst-menu catalyst-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
  112. <div class="catalyst-left-menu-search">
  113. <div role="search">
  114. <form id="rtd-search-form" class="wy-form" action="search.html" method="get">
  115. <input type="text" name="q" placeholder="Search Docs" />
  116. <input type="hidden" name="check_keywords" value="yes" />
  117. <input type="hidden" name="area" value="default" />
  118. </form>
  119. </div>
  120. </div>
  121. <p class="caption"><span class="caption-text">Setup</span></p>
  122. <ul>
  123. <li class="toctree-l1"><a class="reference internal" href="install.html">How to install the CBD framework?</a></li>
  124. <li class="toctree-l1"><a class="reference internal" href="running.html">How to run a CBD simulation?</a></li>
  125. <li class="toctree-l1"><a class="reference internal" href="changelog.html">Changelog</a></li>
  126. </ul>
  127. <p class="caption"><span class="caption-text">Simple Examples</span></p>
  128. <ul>
  129. <li class="toctree-l1"><a class="reference internal" href="examples/SinGen.html">Sine Generator</a></li>
  130. <li class="toctree-l1"><a class="reference internal" href="examples/EvenNumberGen.html">Hierarchical Even Number Generator</a></li>
  131. <li class="toctree-l1"><a class="reference internal" href="examples/Fibonacci.html">Fibonacci Sequence Generator</a></li>
  132. <li class="toctree-l1"><a class="reference internal" href="examples/LCG.html">Linear Congruential Generator</a></li>
  133. </ul>
  134. <p class="caption"><span class="caption-text">Advanced Examples</span></p>
  135. <ul>
  136. <li class="toctree-l1"><a class="reference internal" href="examples/RealTime.html">Realtime Simulation</a></li>
  137. <li class="toctree-l1"><a class="reference internal" href="examples/LivePlot.html">Live Plotting of Data During the Simulation</a></li>
  138. </ul>
  139. <p class="caption"><span class="caption-text">Internal Documentation</span></p>
  140. <ul class="current">
  141. <li class="toctree-l1 current"><a class="reference internal" href="CBD.html">CBD package</a></li>
  142. </ul>
  143. </div>
  144. </div>
  145. </nav>
  146. <div class="catalyst-container">
  147. <div class="catalyst-page-level-bar" id="catalyst-page-level-bar">
  148. <div class="catalyst-breadcrumbs-wrapper">
  149. <div role="navigation" aria-label="breadcrumbs navigation">
  150. <ul class="catalyst-breadcrumbs">
  151. <li>
  152. <a href="index.html">
  153. Docs
  154. </a> &gt;
  155. </li>
  156. <li><a href="CBD.html">CBD package</a> &gt;</li>
  157. <li>CBD.simulator module</li>
  158. <li class="catalyst-breadcrumbs-aside">
  159. </li>
  160. </ul>
  161. </div>
  162. </div>
  163. <div class="catalyst-shortcuts-wrapper" id="catalyst-shortcuts-wrapper">
  164. Shortcuts
  165. </div>
  166. </div>
  167. <section data-toggle="wy-nav-shift" id="catalyst-content-wrap" class="catalyst-content-wrap">
  168. <div class="catalyst-content-left">
  169. <div class="rst-content">
  170. <div role="main" class="main-content" itemscope="itemscope" itemtype="http://schema.org/Article">
  171. <article itemprop="articleBody" id="catalyst-article" class="catalyst-article">
  172. <div class="section" id="module-CBD.simulator">
  173. <span id="cbd-simulator-module"></span><h1>CBD.simulator module<a class="headerlink" href="#module-CBD.simulator" title="Permalink to this headline">¶</a></h1>
  174. <dl class="class">
  175. <dt id="CBD.simulator.Clock">
  176. <em class="property">class </em><code class="descclassname">CBD.simulator.</code><code class="descname">Clock</code><span class="sig-paren">(</span><em>delta_t</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/CBD/simulator.html#Clock"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#CBD.simulator.Clock" title="Permalink to this definition">¶</a></dt>
  177. <dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">object</span></code></p>
  178. <p>The clock of the simulation.</p>
  179. <table class="docutils field-list" frame="void" rules="none">
  180. <col class="field-name" />
  181. <col class="field-body" />
  182. <tbody valign="top">
  183. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>delta_t</strong> (<em>float</em>) – Delay in-between timesteps in the simulation.</td>
  184. </tr>
  185. </tbody>
  186. </table>
  187. <dl class="method">
  188. <dt id="CBD.simulator.Clock.getTime">
  189. <code class="descname">getTime</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/CBD/simulator.html#Clock.getTime"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#CBD.simulator.Clock.getTime" title="Permalink to this definition">¶</a></dt>
  190. <dd><p>Gets the current simulation time.</p>
  191. </dd></dl>
  192. <dl class="method">
  193. <dt id="CBD.simulator.Clock.step">
  194. <code class="descname">step</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/CBD/simulator.html#Clock.step"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#CBD.simulator.Clock.step" title="Permalink to this definition">¶</a></dt>
  195. <dd><p>Executes a timestep on the simulation.</p>
  196. </dd></dl>
  197. <dl class="method">
  198. <dt id="CBD.simulator.Clock.setDeltaT">
  199. <code class="descname">setDeltaT</code><span class="sig-paren">(</span><em>new_delta_t</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/CBD/simulator.html#Clock.setDeltaT"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#CBD.simulator.Clock.setDeltaT" title="Permalink to this definition">¶</a></dt>
  200. <dd><p>Sets the delta in-between timesteps.</p>
  201. <table class="docutils field-list" frame="void" rules="none">
  202. <col class="field-name" />
  203. <col class="field-body" />
  204. <tbody valign="top">
  205. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>new_delta_t</strong> (<em>float</em>) – The new delta.</td>
  206. </tr>
  207. </tbody>
  208. </table>
  209. </dd></dl>
  210. <dl class="method">
  211. <dt id="CBD.simulator.Clock.getDeltaT">
  212. <code class="descname">getDeltaT</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/CBD/simulator.html#Clock.getDeltaT"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#CBD.simulator.Clock.getDeltaT" title="Permalink to this definition">¶</a></dt>
  213. <dd><p>Obtains the current delta.</p>
  214. </dd></dl>
  215. </dd></dl>
  216. <dl class="class">
  217. <dt id="CBD.simulator.Simulator">
  218. <em class="property">class </em><code class="descclassname">CBD.simulator.</code><code class="descname">Simulator</code><span class="sig-paren">(</span><em>model</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/CBD/simulator.html#Simulator"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#CBD.simulator.Simulator" title="Permalink to this definition">¶</a></dt>
  219. <dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">object</span></code></p>
  220. <p>Simulator for a CBD model. Allows for execution of the simulation.
  221. This class implements the semantics of CBDs.</p>
  222. <table class="docutils field-list" frame="void" rules="none">
  223. <col class="field-name" />
  224. <col class="field-body" />
  225. <tbody valign="top">
  226. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>model</strong> (<a class="reference internal" href="CBD.CBD.html#CBD.CBD.CBD" title="CBD.CBD.CBD"><em>CBD</em></a>) – A <a class="reference internal" href="CBD.html#module-CBD" title="CBD"><code class="xref py py-class docutils literal notranslate"><span class="pre">CBD</span></code></a> model to simulate.</td>
  227. </tr>
  228. </tbody>
  229. </table>
  230. <dl class="method">
  231. <dt id="CBD.simulator.Simulator.run">
  232. <code class="descname">run</code><span class="sig-paren">(</span><em>term_time=None</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/CBD/simulator.html#Simulator.run"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#CBD.simulator.Simulator.run" title="Permalink to this definition">¶</a></dt>
  233. <dd><p>Simulates the model.</p>
  234. <table class="docutils field-list" frame="void" rules="none">
  235. <col class="field-name" />
  236. <col class="field-body" />
  237. <tbody valign="top">
  238. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>term_time</strong> (<em>float</em>) – When not <code class="code docutils literal notranslate"><span class="pre">None</span></code>, overwrites the
  239. termination time with the new value.</td>
  240. </tr>
  241. </tbody>
  242. </table>
  243. </dd></dl>
  244. <dl class="method">
  245. <dt id="CBD.simulator.Simulator.is_running">
  246. <code class="descname">is_running</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/CBD/simulator.html#Simulator.is_running"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#CBD.simulator.Simulator.is_running" title="Permalink to this definition">¶</a></dt>
  247. <dd><p>Returns <code class="code docutils literal notranslate"><span class="pre">True</span></code> as long as the simulation is running.
  248. This is a convenience function to keep real-time simulations
  249. alive, or to interact from external sources.</p>
  250. </dd></dl>
  251. <dl class="method">
  252. <dt id="CBD.simulator.Simulator.getClock">
  253. <code class="descname">getClock</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/CBD/simulator.html#Simulator.getClock"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#CBD.simulator.Simulator.getClock" title="Permalink to this definition">¶</a></dt>
  254. <dd><p>Gets the simulation clock.</p>
  255. <div class="admonition seealso">
  256. <p class="first admonition-title">See also</p>
  257. <ul class="last simple">
  258. <li><a class="reference internal" href="#CBD.simulator.Simulator.getTime" title="CBD.simulator.Simulator.getTime"><code class="xref py py-func docutils literal notranslate"><span class="pre">getTime()</span></code></a></li>
  259. <li><a class="reference internal" href="#CBD.simulator.Simulator.getDeltaT" title="CBD.simulator.Simulator.getDeltaT"><code class="xref py py-func docutils literal notranslate"><span class="pre">getDeltaT()</span></code></a></li>
  260. <li><a class="reference internal" href="#CBD.simulator.Simulator.setDeltaT" title="CBD.simulator.Simulator.setDeltaT"><code class="xref py py-func docutils literal notranslate"><span class="pre">setDeltaT()</span></code></a></li>
  261. <li><a class="reference internal" href="#CBD.simulator.Clock" title="CBD.simulator.Clock"><code class="xref py py-class docutils literal notranslate"><span class="pre">Clock</span></code></a></li>
  262. </ul>
  263. </div>
  264. </dd></dl>
  265. <dl class="method">
  266. <dt id="CBD.simulator.Simulator.getTime">
  267. <code class="descname">getTime</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/CBD/simulator.html#Simulator.getTime"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#CBD.simulator.Simulator.getTime" title="Permalink to this definition">¶</a></dt>
  268. <dd><p>Gets the current simulation time.</p>
  269. <div class="admonition seealso">
  270. <p class="first admonition-title">See also</p>
  271. <ul class="last simple">
  272. <li><a class="reference internal" href="#CBD.simulator.Simulator.getClock" title="CBD.simulator.Simulator.getClock"><code class="xref py py-func docutils literal notranslate"><span class="pre">getClock()</span></code></a></li>
  273. <li><a class="reference internal" href="#CBD.simulator.Simulator.getDeltaT" title="CBD.simulator.Simulator.getDeltaT"><code class="xref py py-func docutils literal notranslate"><span class="pre">getDeltaT()</span></code></a></li>
  274. <li><a class="reference internal" href="#CBD.simulator.Simulator.setDeltaT" title="CBD.simulator.Simulator.setDeltaT"><code class="xref py py-func docutils literal notranslate"><span class="pre">setDeltaT()</span></code></a></li>
  275. <li><a class="reference internal" href="#CBD.simulator.Clock" title="CBD.simulator.Clock"><code class="xref py py-class docutils literal notranslate"><span class="pre">Clock</span></code></a></li>
  276. </ul>
  277. </div>
  278. </dd></dl>
  279. <dl class="method">
  280. <dt id="CBD.simulator.Simulator.setDeltaT">
  281. <code class="descname">setDeltaT</code><span class="sig-paren">(</span><em>delta_t</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/CBD/simulator.html#Simulator.setDeltaT"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#CBD.simulator.Simulator.setDeltaT" title="Permalink to this definition">¶</a></dt>
  282. <dd><p>Sets the delta in-between iteration steps.</p>
  283. <table class="docutils field-list" frame="void" rules="none">
  284. <col class="field-name" />
  285. <col class="field-body" />
  286. <tbody valign="top">
  287. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>delta_t</strong> (<em>float</em>) – The delta.</td>
  288. </tr>
  289. </tbody>
  290. </table>
  291. <div class="admonition seealso">
  292. <p class="first admonition-title">See also</p>
  293. <ul class="last simple">
  294. <li><a class="reference internal" href="#CBD.simulator.Simulator.getClock" title="CBD.simulator.Simulator.getClock"><code class="xref py py-func docutils literal notranslate"><span class="pre">getClock()</span></code></a></li>
  295. <li><a class="reference internal" href="#CBD.simulator.Simulator.getTime" title="CBD.simulator.Simulator.getTime"><code class="xref py py-func docutils literal notranslate"><span class="pre">getTime()</span></code></a></li>
  296. <li><a class="reference internal" href="#CBD.simulator.Simulator.getDeltaT" title="CBD.simulator.Simulator.getDeltaT"><code class="xref py py-func docutils literal notranslate"><span class="pre">getDeltaT()</span></code></a></li>
  297. <li><a class="reference internal" href="#CBD.simulator.Clock" title="CBD.simulator.Clock"><code class="xref py py-class docutils literal notranslate"><span class="pre">Clock</span></code></a></li>
  298. </ul>
  299. </div>
  300. </dd></dl>
  301. <dl class="method">
  302. <dt id="CBD.simulator.Simulator.getDeltaT">
  303. <code class="descname">getDeltaT</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/CBD/simulator.html#Simulator.getDeltaT"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#CBD.simulator.Simulator.getDeltaT" title="Permalink to this definition">¶</a></dt>
  304. <dd><p>Gets the delta in-between iteration steps.</p>
  305. <div class="admonition seealso">
  306. <p class="first admonition-title">See also</p>
  307. <ul class="last simple">
  308. <li><a class="reference internal" href="#CBD.simulator.Simulator.getClock" title="CBD.simulator.Simulator.getClock"><code class="xref py py-func docutils literal notranslate"><span class="pre">getClock()</span></code></a></li>
  309. <li><a class="reference internal" href="#CBD.simulator.Simulator.getTime" title="CBD.simulator.Simulator.getTime"><code class="xref py py-func docutils literal notranslate"><span class="pre">getTime()</span></code></a></li>
  310. <li><a class="reference internal" href="#CBD.simulator.Simulator.setDeltaT" title="CBD.simulator.Simulator.setDeltaT"><code class="xref py py-func docutils literal notranslate"><span class="pre">setDeltaT()</span></code></a></li>
  311. <li><a class="reference internal" href="#CBD.simulator.Clock" title="CBD.simulator.Clock"><code class="xref py py-class docutils literal notranslate"><span class="pre">Clock</span></code></a></li>
  312. </ul>
  313. </div>
  314. </dd></dl>
  315. <dl class="method">
  316. <dt id="CBD.simulator.Simulator.setRealTime">
  317. <code class="descname">setRealTime</code><span class="sig-paren">(</span><em>enabled=True</em>, <em>scale=1.0</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/CBD/simulator.html#Simulator.setRealTime"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#CBD.simulator.Simulator.setRealTime" title="Permalink to this definition">¶</a></dt>
  318. <dd><p>Makes the simulation run in (scaled) real time.</p>
  319. <table class="docutils field-list" frame="void" rules="none">
  320. <col class="field-name" />
  321. <col class="field-body" />
  322. <tbody valign="top">
  323. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
  324. <li><strong>enabled</strong> (<em>bool</em>) – When <code class="code docutils literal notranslate"><span class="pre">True</span></code>, realtime simulation will be enabled.
  325. Otherwise, it will be disabled. Defaults to <code class="code docutils literal notranslate"><span class="pre">True</span></code>.</li>
  326. <li><strong>scale</strong> (<em>float</em>) – Optional scaling for the simulation time. When greater
  327. than 1, the simulation will run slower than the actual
  328. time. When &lt; 1, it will run faster.
  329. E.g. <code class="code docutils literal notranslate"><span class="pre">scale</span> <span class="pre">=</span> <span class="pre">2.0</span></code> will run twice as long.
  330. Defaults to <code class="code docutils literal notranslate"><span class="pre">1.0</span></code>.</li>
  331. </ul>
  332. </td>
  333. </tr>
  334. </tbody>
  335. </table>
  336. </dd></dl>
  337. <dl class="method">
  338. <dt id="CBD.simulator.Simulator.setProgressBar">
  339. <code class="descname">setProgressBar</code><span class="sig-paren">(</span><em>enabled=True</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/CBD/simulator.html#Simulator.setProgressBar"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#CBD.simulator.Simulator.setProgressBar" title="Permalink to this definition">¶</a></dt>
  340. <dd><p>Use the <a class="reference external" href="https://tqdm.github.io/">tdqm</a> package to display a progress bar
  341. of the simulation.</p>
  342. <table class="docutils field-list" frame="void" rules="none">
  343. <col class="field-name" />
  344. <col class="field-body" />
  345. <tbody valign="top">
  346. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>enabled</strong> (<em>bool</em>) – Whether or not to enable/disable the progress bar.
  347. Defaults to <code class="code docutils literal notranslate"><span class="pre">True</span></code> (= show progress bar).</td>
  348. </tr>
  349. <tr class="field-even field"><th class="field-name">Raises:</th><td class="field-body"><code class="xref py py-exc docutils literal notranslate"><span class="pre">AssertionError</span></code> – if the <code class="code docutils literal notranslate"><span class="pre">tqdm</span></code> module cannot be located.</td>
  350. </tr>
  351. </tbody>
  352. </table>
  353. </dd></dl>
  354. <dl class="method">
  355. <dt id="CBD.simulator.Simulator.setTerminationCondition">
  356. <code class="descname">setTerminationCondition</code><span class="sig-paren">(</span><em>func</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/CBD/simulator.html#Simulator.setTerminationCondition"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#CBD.simulator.Simulator.setTerminationCondition" title="Permalink to this definition">¶</a></dt>
  357. <dd><p>Sets the system’s termination condition.</p>
  358. <table class="docutils field-list" frame="void" rules="none">
  359. <col class="field-name" />
  360. <col class="field-body" />
  361. <tbody valign="top">
  362. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>func</strong> – A function that takes the model and the current iteration as input
  363. and produces <code class="code docutils literal notranslate"><span class="pre">True</span></code> if the simulation needs to terminate.</td>
  364. </tr>
  365. </tbody>
  366. </table>
  367. <div class="admonition note">
  368. <p class="first admonition-title">Note</p>
  369. <p class="last">When set, the progress bars (see <a class="reference internal" href="#CBD.simulator.Simulator.setProgressBar" title="CBD.simulator.Simulator.setProgressBar"><code class="xref py py-func docutils literal notranslate"><span class="pre">setProgressBar()</span></code></a>) may not work as intended.</p>
  370. </div>
  371. <div class="admonition seealso">
  372. <p class="first admonition-title">See also</p>
  373. <p class="last"><a class="reference internal" href="#CBD.simulator.Simulator.setTerminationTime" title="CBD.simulator.Simulator.setTerminationTime"><code class="xref py py-func docutils literal notranslate"><span class="pre">setTerminationTime()</span></code></a></p>
  374. </div>
  375. </dd></dl>
  376. <dl class="method">
  377. <dt id="CBD.simulator.Simulator.setTerminationTime">
  378. <code class="descname">setTerminationTime</code><span class="sig-paren">(</span><em>term_time</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/CBD/simulator.html#Simulator.setTerminationTime"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#CBD.simulator.Simulator.setTerminationTime" title="Permalink to this definition">¶</a></dt>
  379. <dd><p>Sets the termination time of the system.</p>
  380. <table class="docutils field-list" frame="void" rules="none">
  381. <col class="field-name" />
  382. <col class="field-body" />
  383. <tbody valign="top">
  384. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>term_time</strong> (<em>float</em>) – Termination time for the simulation.</td>
  385. </tr>
  386. </tbody>
  387. </table>
  388. </dd></dl>
  389. <dl class="method">
  390. <dt id="CBD.simulator.Simulator.setRealTimePlatform">
  391. <code class="descname">setRealTimePlatform</code><span class="sig-paren">(</span><em>subsystem</em>, <em>*args</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/CBD/simulator.html#Simulator.setRealTimePlatform"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#CBD.simulator.Simulator.setRealTimePlatform" title="Permalink to this definition">¶</a></dt>
  392. <dd><p>Sets the realtime platform to a platform of choice.
  393. This allows more complex/efficient simulations.</p>
  394. <p>Calling this function automatically sets the simulation to realtime.</p>
  395. <table class="docutils field-list" frame="void" rules="none">
  396. <col class="field-name" />
  397. <col class="field-body" />
  398. <tbody valign="top">
  399. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
  400. <li><strong>subsystem</strong> (<a class="reference internal" href="CBD.realtime.threadingBackend.html#CBD.realtime.threadingBackend.Platform" title="CBD.realtime.threadingBackend.Platform"><em>Platform</em></a>) – The platform to use.</li>
  401. <li><strong>args</strong> – Optional arguments for this platform.
  402. Currently, only the TkInter platform
  403. makes use of these arguments.</li>
  404. </ul>
  405. </td>
  406. </tr>
  407. </tbody>
  408. </table>
  409. <div class="admonition note">
  410. <p class="first admonition-title">Note</p>
  411. <p class="last">To prevent misuse of the function, please use one of the wrapper
  412. functions when you have no idea what you’re doing.</p>
  413. </div>
  414. <div class="admonition seealso">
  415. <p class="first admonition-title">See also</p>
  416. <ul class="last simple">
  417. <li><a class="reference internal" href="#CBD.simulator.Simulator.setRealTimePlatformThreading" title="CBD.simulator.Simulator.setRealTimePlatformThreading"><code class="xref py py-func docutils literal notranslate"><span class="pre">setRealTimePlatformThreading()</span></code></a></li>
  418. <li><a class="reference internal" href="#CBD.simulator.Simulator.setRealTimePlatformTk" title="CBD.simulator.Simulator.setRealTimePlatformTk"><code class="xref py py-func docutils literal notranslate"><span class="pre">setRealTimePlatformTk()</span></code></a></li>
  419. <li><a class="reference internal" href="#CBD.simulator.Simulator.setRealTimePlatformGameLoop" title="CBD.simulator.Simulator.setRealTimePlatformGameLoop"><code class="xref py py-func docutils literal notranslate"><span class="pre">setRealTimePlatformGameLoop()</span></code></a></li>
  420. </ul>
  421. </div>
  422. </dd></dl>
  423. <dl class="method">
  424. <dt id="CBD.simulator.Simulator.setRealTimePlatformThreading">
  425. <code class="descname">setRealTimePlatformThreading</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/CBD/simulator.html#Simulator.setRealTimePlatformThreading"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#CBD.simulator.Simulator.setRealTimePlatformThreading" title="Permalink to this definition">¶</a></dt>
  426. <dd><p>Wrapper around the <a class="reference internal" href="#CBD.simulator.Simulator.setRealTimePlatform" title="CBD.simulator.Simulator.setRealTimePlatform"><code class="xref py py-func docutils literal notranslate"><span class="pre">setRealTimePlatform()</span></code></a> call to automatically
  427. set the Python Threading backend.</p>
  428. <p>Calling this function automatically sets the simulation to realtime.</p>
  429. <div class="admonition seealso">
  430. <p class="first admonition-title">See also</p>
  431. <ul class="last simple">
  432. <li><a class="reference internal" href="#CBD.simulator.Simulator.setRealTimePlatform" title="CBD.simulator.Simulator.setRealTimePlatform"><code class="xref py py-func docutils literal notranslate"><span class="pre">setRealTimePlatform()</span></code></a></li>
  433. <li><a class="reference internal" href="#CBD.simulator.Simulator.setRealTimePlatformTk" title="CBD.simulator.Simulator.setRealTimePlatformTk"><code class="xref py py-func docutils literal notranslate"><span class="pre">setRealTimePlatformTk()</span></code></a></li>
  434. <li><a class="reference internal" href="#CBD.simulator.Simulator.setRealTimePlatformGameLoop" title="CBD.simulator.Simulator.setRealTimePlatformGameLoop"><code class="xref py py-func docutils literal notranslate"><span class="pre">setRealTimePlatformGameLoop()</span></code></a></li>
  435. </ul>
  436. </div>
  437. </dd></dl>
  438. <dl class="method">
  439. <dt id="CBD.simulator.Simulator.setRealTimePlatformGameLoop">
  440. <code class="descname">setRealTimePlatformGameLoop</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/CBD/simulator.html#Simulator.setRealTimePlatformGameLoop"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#CBD.simulator.Simulator.setRealTimePlatformGameLoop" title="Permalink to this definition">¶</a></dt>
  441. <dd><p>Wrapper around the <a class="reference internal" href="#CBD.simulator.Simulator.setRealTimePlatform" title="CBD.simulator.Simulator.setRealTimePlatform"><code class="xref py py-func docutils literal notranslate"><span class="pre">setRealTimePlatform()</span></code></a> call to automatically
  442. set the Python Threading backend.</p>
  443. <p>Calling this function automatically sets the simulation to realtime.</p>
  444. <div class="admonition seealso">
  445. <p class="first admonition-title">See also</p>
  446. <ul class="last simple">
  447. <li><a class="reference internal" href="#CBD.simulator.Simulator.setRealTimePlatform" title="CBD.simulator.Simulator.setRealTimePlatform"><code class="xref py py-func docutils literal notranslate"><span class="pre">setRealTimePlatform()</span></code></a></li>
  448. <li><a class="reference internal" href="#CBD.simulator.Simulator.setRealTimePlatformThreading" title="CBD.simulator.Simulator.setRealTimePlatformThreading"><code class="xref py py-func docutils literal notranslate"><span class="pre">setRealTimePlatformThreading()</span></code></a></li>
  449. <li><a class="reference internal" href="#CBD.simulator.Simulator.setRealTimePlatformTk" title="CBD.simulator.Simulator.setRealTimePlatformTk"><code class="xref py py-func docutils literal notranslate"><span class="pre">setRealTimePlatformTk()</span></code></a></li>
  450. </ul>
  451. </div>
  452. </dd></dl>
  453. <dl class="method">
  454. <dt id="CBD.simulator.Simulator.setRealTimePlatformTk">
  455. <code class="descname">setRealTimePlatformTk</code><span class="sig-paren">(</span><em>root</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/CBD/simulator.html#Simulator.setRealTimePlatformTk"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#CBD.simulator.Simulator.setRealTimePlatformTk" title="Permalink to this definition">¶</a></dt>
  456. <dd><p>Wrapper around the <a class="reference internal" href="#CBD.simulator.Simulator.setRealTimePlatform" title="CBD.simulator.Simulator.setRealTimePlatform"><code class="xref py py-func docutils literal notranslate"><span class="pre">setRealTimePlatform()</span></code></a> call to automatically
  457. set the TkInter backend.</p>
  458. <p>Calling this function automatically sets the simulation to realtime.</p>
  459. <table class="docutils field-list" frame="void" rules="none">
  460. <col class="field-name" />
  461. <col class="field-body" />
  462. <tbody valign="top">
  463. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>root</strong> – TkInter root window object (tkinter.Tk)</td>
  464. </tr>
  465. </tbody>
  466. </table>
  467. <div class="admonition seealso">
  468. <p class="first admonition-title">See also</p>
  469. <ul class="last simple">
  470. <li><a class="reference internal" href="#CBD.simulator.Simulator.setRealTimePlatform" title="CBD.simulator.Simulator.setRealTimePlatform"><code class="xref py py-func docutils literal notranslate"><span class="pre">setRealTimePlatform()</span></code></a></li>
  471. <li><a class="reference internal" href="#CBD.simulator.Simulator.setRealTimePlatformThreading" title="CBD.simulator.Simulator.setRealTimePlatformThreading"><code class="xref py py-func docutils literal notranslate"><span class="pre">setRealTimePlatformThreading()</span></code></a></li>
  472. <li><a class="reference internal" href="#CBD.simulator.Simulator.setRealTimePlatformGameLoop" title="CBD.simulator.Simulator.setRealTimePlatformGameLoop"><code class="xref py py-func docutils literal notranslate"><span class="pre">setRealTimePlatformGameLoop()</span></code></a></li>
  473. </ul>
  474. </div>
  475. </dd></dl>
  476. <dl class="method">
  477. <dt id="CBD.simulator.Simulator.realtime_gameloop_call">
  478. <code class="descname">realtime_gameloop_call</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/CBD/simulator.html#Simulator.realtime_gameloop_call"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#CBD.simulator.Simulator.realtime_gameloop_call" title="Permalink to this definition">¶</a></dt>
  479. <dd><p>Do a step in the realtime-gameloop platform.</p>
  480. <div class="admonition note">
  481. <p class="first admonition-title">Note</p>
  482. <p class="last">This function will only work for a <code class="xref py py-attr docutils literal notranslate"><span class="pre">Platform.GAMELOOP</span></code> simulation,
  483. after the <a class="reference internal" href="#CBD.simulator.Simulator.run" title="CBD.simulator.Simulator.run"><code class="xref py py-func docutils literal notranslate"><span class="pre">run()</span></code></a> method has been called.</p>
  484. </div>
  485. <div class="admonition seealso">
  486. <p class="first admonition-title">See also</p>
  487. <ul class="last simple">
  488. <li><a class="reference internal" href="#CBD.simulator.Simulator.setRealTimePlatform" title="CBD.simulator.Simulator.setRealTimePlatform"><code class="xref py py-func docutils literal notranslate"><span class="pre">setRealTimePlatform()</span></code></a></li>
  489. <li><a class="reference internal" href="#CBD.simulator.Simulator.setRealTimePlatformGameLoop" title="CBD.simulator.Simulator.setRealTimePlatformGameLoop"><code class="xref py py-func docutils literal notranslate"><span class="pre">setRealTimePlatformGameLoop()</span></code></a></li>
  490. <li><a class="reference internal" href="#CBD.simulator.Simulator.run" title="CBD.simulator.Simulator.run"><code class="xref py py-func docutils literal notranslate"><span class="pre">run()</span></code></a></li>
  491. </ul>
  492. </div>
  493. </dd></dl>
  494. <dl class="method">
  495. <dt id="CBD.simulator.Simulator.getDurationLog">
  496. <code class="descname">getDurationLog</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/CBD/simulator.html#Simulator.getDurationLog"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#CBD.simulator.Simulator.getDurationLog" title="Permalink to this definition">¶</a></dt>
  497. <dd><p>Get the list of timings for every iteration.</p>
  498. <div class="admonition warning">
  499. <p class="first admonition-title">Warning</p>
  500. <p class="last">This function is temporary and will be removed in the future.</p>
  501. </div>
  502. </dd></dl>
  503. </dd></dl>
  504. </div>
  505. </article>
  506. </div>
  507. <footer>
  508. <div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
  509. <a href="CBD.solver.html" class="btn btn-neutral float-right" title="CBD.solver module" accesskey="n" rel="next">Next <img src="_static/images/chevron-right-orange.svg" class="next-page"></a>
  510. <a href="CBD.depGraph.html" class="btn btn-neutral" title="CBD.depGraph module" accesskey="p" rel="prev"><img src="_static/images/chevron-right-orange.svg" class="previous-page"> Previous</a>
  511. </div>
  512. <hr>
  513. <div role="contentinfo">
  514. <p>
  515. &copy; Copyright 2020, Randy Paredis.
  516. </p>
  517. </div>
  518. <div>
  519. Built with <a href="http://sphinx-doc.org/">Sphinx</a> using a <a href="https://github.com/rtfd/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>.
  520. </div>
  521. </footer>
  522. </div>
  523. </div>
  524. <div class="catalyst-content-right" id="catalyst-content-right">
  525. <div class="catalyst-right-menu" id="catalyst-right-menu">
  526. <div class="catalyst-side-scroll" id="catalyst-side-scroll-right">
  527. <ul>
  528. <li><a class="reference internal" href="#">CBD.simulator module</a></li>
  529. </ul>
  530. </div>
  531. </div>
  532. </div>
  533. </section>
  534. </div>
  535. <script type="text/javascript" id="documentation_options" data-url_root="./" src="_static/documentation_options.js"></script>
  536. <script type="text/javascript" src="_static/jquery.js"></script>
  537. <script type="text/javascript" src="_static/underscore.js"></script>
  538. <script type="text/javascript" src="_static/doctools.js"></script>
  539. <script type="text/javascript" src="_static/language_data.js"></script>
  540. <script async="async" type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/latest.js?config=TeX-AMS-MML_HTMLorMML"></script>
  541. <script type="text/javascript" src="_static/js/vendor/popper.min.js"></script>
  542. <script type="text/javascript" src="_static/js/vendor/bootstrap.min.js"></script>
  543. <script type="text/javascript" src="_static/js/theme.js"></script>
  544. <script type="text/javascript">
  545. jQuery(function () {
  546. SphinxRtdTheme.Navigation.enable(true);
  547. });
  548. </script>
  549. <!-- Begin Footer -->
  550. <footer class="site-footer" id="site-footer">
  551. <div class="container footer-container">
  552. <div class="footer-logo-wrapper">
  553. <a href="https://catalyst-team.com/" class="footer-logo"></a>
  554. </div>
  555. <div class="footer-links-wrapper">
  556. <div class="footer-links-col">
  557. <ul>
  558. <li class="list-title"><a href="https://github.com/catalyst-team">Ecosystem</a></li>
  559. <li><a class="nav-dropdown-item" href="https://alchemy.host">Alchemy</a></li>
  560. <li><a class="nav-dropdown-item" href="https://github.com/catalyst-team/catalyst">Catalyst</a></li>
  561. <li><a class="nav-dropdown-item" href="https://github.com/catalyst-team/reaction">Reaction</a></li>
  562. </ul>
  563. </div>
  564. <div class="footer-links-col">
  565. <ul>
  566. <li class="list-title"><a href="https://github.com/catalyst-team">Projects</a></li>
  567. <li><a class="nav-dropdown-item" href="https://github.com/catalyst-team/codestyle">Codestyle</a></li>
  568. <li><a class="nav-dropdown-item" href="https://github.com/catalyst-team/neuro">Catalyst.Neuro</a></li>
  569. <li><a class="nav-dropdown-item" href="https://github.com/catalyst-team/classification">Classification</a></li>
  570. <li><a class="nav-dropdown-item" href="https://github.com/catalyst-team/detection">Detection</a></li>
  571. <li><a class="nav-dropdown-item" href="https://github.com/catalyst-team/segmentation">Segmentation</a></li>
  572. <li><a class="nav-dropdown-item" href="https://github.com/catalyst-team/gan">Catalyst.GAN</a></li>
  573. </ul>
  574. </div>
  575. <div class="footer-links-col">
  576. <ul>
  577. <li class="list-title"><a href="https://catalyst-team.com/">Support</a></li>
  578. <li><a href="https://github.com/catalyst-team/catalyst/issues" target="_blank">Github Issues</a></li>
  579. <li><a href="https://github.com/catalyst-team/catalyst/blob/master/CONTRIBUTING.md" target="_blank">Contributing</a></li>
  580. <li><a href="https://www.patreon.com/catalyst_team" target="_blank">Patreon</a></li>
  581. </ul>
  582. </div>
  583. <div class="footer-links-col follow-us-col">
  584. <div class="footer-social-icons">
  585. <a href="https://t.me/catalyst_team" target="_blank" class="telegram"></a>
  586. <a href="https://twitter.com/catalyst_core" target="_blank" class="twitter"></a>
  587. <a href="https://join.slack.com/t/catalyst-team-core/shared_invite/zt-d9miirnn-z86oKDzFMKlMG4fgFdZafw" target="_blank" class="ods"></a>
  588. </div>
  589. </div>
  590. </div>
  591. </div>
  592. </footer>
  593. <!-- End Footer -->
  594. <!-- Begin Mobile Menu -->
  595. <div class="mobile-main-menu">
  596. <div class="container-fluid">
  597. <div class="container">
  598. <div class="mobile-main-menu-header-container">
  599. <a class="header-logo" href="https://catalyst-team.com/" aria-label="Catalyst"></a>
  600. <a class="main-menu-close-button" href="#" data-behavior="close-mobile-menu"></a>
  601. </div>
  602. </div>
  603. </div>
  604. <div class="mobile-main-menu-links-container">
  605. <div class="main-menu">
  606. <ul>
  607. <li>
  608. <a href="">Get Started</a>
  609. </li>
  610. <li>
  611. <a href="https://github.com/catalyst-team/catalyst">Github</a>
  612. </li>
  613. </ul>
  614. </div>
  615. </div>
  616. </div>
  617. <!-- End Mobile Menu -->
  618. <script type="text/javascript" src="_static/js/vendor/anchor.min.js"></script>
  619. <script type="text/javascript">
  620. $(document).ready(function() {
  621. mobileMenu.bind();
  622. mobileTOC.bind();
  623. catalystAnchors.bind();
  624. sideMenus.bind();
  625. scrollToAnchor.bind();
  626. highlightNavigation.bind();
  627. mainMenuDropdown.bind();
  628. // Add class to links that have code blocks, since we cannot create links in code blocks
  629. $("article.catalyst-article a span.pre").each(function(e) {
  630. $(this).closest("a").addClass("has-code");
  631. });
  632. })
  633. </script>
  634. </body>
  635. </html>