Skip to content

Commit

Permalink
deploy: e8020f8
Browse files Browse the repository at this point in the history
  • Loading branch information
riku-sakamoto committed May 27, 2024
0 parents commit b5d60f6
Show file tree
Hide file tree
Showing 87 changed files with 8,953 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .buildinfo
Original file line number Diff line number Diff line change
@@ -0,0 +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: 65a7c77ec4556bbfdf7a05dfdcdc6f6b
tags: 645f666f9bcd5a90fca523b33c5a78b7
Binary file added .doctrees/environment.pickle
Binary file not shown.
Binary file added .doctrees/examples.doctree
Binary file not shown.
Binary file added .doctrees/index.doctree
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added .doctrees/reference/graph_components.doctree
Binary file not shown.
Binary file added .doctrees/reference/index.doctree
Binary file not shown.
Binary file added .doctrees/reference/utils.doctree
Binary file not shown.
Binary file added .doctrees/reference/viewers.doctree
Binary file not shown.
Empty file added .nojekyll
Empty file.
235 changes: 235 additions & 0 deletions _modules/dagstream/graph_components/dags/functional_dag.html

Large diffs are not rendered by default.

214 changes: 214 additions & 0 deletions _modules/dagstream/graph_components/nodes/functional_node.html

Large diffs are not rendered by default.

161 changes: 161 additions & 0 deletions _modules/dagstream/graph_components/nodes/node_state.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,161 @@
<!DOCTYPE html>
<html class="writer-html5" lang="en" >
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>dagstream.graph_components.nodes.node_state &mdash; dagstream 0.1.4 documentation</title>
<link rel="stylesheet" href="../../../../_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="../../../../_static/css/theme.css" type="text/css" />
<!--[if lt IE 9]>
<script src="../../../../_static/js/html5shiv.min.js"></script>
<![endif]-->

<script src="../../../../_static/jquery.js?v=5d32c60e"></script>
<script src="../../../../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
<script src="../../../../_static/documentation_options.js?v=fd825880"></script>
<script src="../../../../_static/doctools.js?v=9a2dae69"></script>
<script src="../../../../_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="https://unpkg.com/[email protected]/dist/mermaid.min.js"></script>
<script>mermaid.initialize({startOnLoad:true});</script>
<script src="../../../../_static/js/theme.js"></script>
<link rel="index" title="Index" href="../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../search.html" />
</head>

<body class="wy-body-for-nav">
<div class="wy-grid-for-nav">
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
<div class="wy-side-scroll">
<div class="wy-side-nav-search" >



<a href="../../../../index.html" class="icon icon-home">
dagstream
</a>
<div class="version">
0.1.4
</div>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="../../../../search.html" method="get">
<input type="text" name="q" placeholder="Search docs" aria-label="Search docs" />
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
</div>
</div><div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="Navigation menu">
<p class="caption" role="heading"><span class="caption-text">Contents</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../../../../examples.html">Example</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../../reference/index.html">API Reference</a></li>
</ul>

</div>
</div>
</nav>

<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap"><nav class="wy-nav-top" aria-label="Mobile navigation menu" >
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
<a href="../../../../index.html">dagstream</a>
</nav>

<div class="wy-nav-content">
<div class="rst-content">
<div role="navigation" aria-label="Page navigation">
<ul class="wy-breadcrumbs">
<li><a href="../../../../index.html" class="icon icon-home" aria-label="Home"></a></li>
<li class="breadcrumb-item"><a href="../../../index.html">Module code</a></li>
<li class="breadcrumb-item active">dagstream.graph_components.nodes.node_state</li>
<li class="wy-breadcrumbs-aside">
</li>
</ul>
<hr/>
</div>
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
<div itemprop="articleBody">

<h1>Source code for dagstream.graph_components.nodes.node_state</h1><div class="highlight"><pre>
<span></span><span class="kn">from</span> <span class="nn">dagstream.graph_components._interface</span> <span class="kn">import</span> <span class="n">INodeState</span>
<span class="kn">from</span> <span class="nn">dagstream.utils.errors</span> <span class="kn">import</span> <span class="n">DagStreamNotReadyError</span>


<div class="viewcode-block" id="UnReadyNodeState">
<a class="viewcode-back" href="../../../../reference/generated/dagstream.graph_components.nodes.node_state.UnReadyNodeState.html#dagstream.graph_components.nodes.node_state.UnReadyNodeState">[docs]</a>
<span class="k">class</span> <span class="nc">UnReadyNodeState</span><span class="p">(</span><span class="n">INodeState</span><span class="p">):</span>
<div class="viewcode-block" id="UnReadyNodeState.__init__">
<a class="viewcode-back" href="../../../../reference/generated/dagstream.graph_components.nodes.node_state.UnReadyNodeState.html#dagstream.graph_components.nodes.node_state.UnReadyNodeState.__init__">[docs]</a>
<span class="k">def</span> <span class="fm">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kc">None</span><span class="p">:</span>
<span class="k">pass</span></div>


<span class="nd">@property</span>
<span class="k">def</span> <span class="nf">n_predecessors</span><span class="p">(</span><span class="bp">self</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">int</span><span class="p">:</span>
<span class="k">raise</span> <span class="n">DagStreamNotReadyError</span><span class="p">()</span>

<span class="nd">@property</span>
<span class="k">def</span> <span class="nf">is_finished</span><span class="p">(</span><span class="bp">self</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">bool</span><span class="p">:</span>
<span class="k">raise</span> <span class="n">DagStreamNotReadyError</span><span class="p">()</span>

<span class="nd">@property</span>
<span class="k">def</span> <span class="nf">is_ready</span><span class="p">(</span><span class="bp">self</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">bool</span><span class="p">:</span>
<span class="k">return</span> <span class="kc">False</span>

<span class="k">def</span> <span class="nf">forward</span><span class="p">(</span><span class="bp">self</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kc">None</span><span class="p">:</span>
<span class="k">raise</span> <span class="n">DagStreamNotReadyError</span><span class="p">()</span></div>



<div class="viewcode-block" id="ReadyNodeState">
<a class="viewcode-back" href="../../../../reference/generated/dagstream.graph_components.nodes.node_state.ReadyNodeState.html#dagstream.graph_components.nodes.node_state.ReadyNodeState">[docs]</a>
<span class="k">class</span> <span class="nc">ReadyNodeState</span><span class="p">(</span><span class="n">INodeState</span><span class="p">):</span>
<div class="viewcode-block" id="ReadyNodeState.__init__">
<a class="viewcode-back" href="../../../../reference/generated/dagstream.graph_components.nodes.node_state.ReadyNodeState.html#dagstream.graph_components.nodes.node_state.ReadyNodeState.__init__">[docs]</a>
<span class="k">def</span> <span class="fm">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">n_predecessors</span><span class="p">:</span> <span class="nb">int</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kc">None</span><span class="p">:</span>
<span class="bp">self</span><span class="o">.</span><span class="n">_n_predecessors</span> <span class="o">=</span> <span class="n">n_predecessors</span></div>


<span class="nd">@property</span>
<span class="k">def</span> <span class="nf">n_predecessors</span><span class="p">(</span><span class="bp">self</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">int</span><span class="p">:</span>
<span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">_n_predecessors</span>

<span class="nd">@property</span>
<span class="k">def</span> <span class="nf">is_finished</span><span class="p">(</span><span class="bp">self</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">bool</span><span class="p">:</span>
<span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">_n_predecessors</span> <span class="o">&lt;</span> <span class="mi">0</span>

<span class="nd">@property</span>
<span class="k">def</span> <span class="nf">is_ready</span><span class="p">(</span><span class="bp">self</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">bool</span><span class="p">:</span>
<span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">_n_predecessors</span> <span class="o">==</span> <span class="mi">0</span>

<span class="k">def</span> <span class="nf">forward</span><span class="p">(</span><span class="bp">self</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kc">None</span><span class="p">:</span>
<span class="bp">self</span><span class="o">.</span><span class="n">_n_predecessors</span> <span class="o">-=</span> <span class="mi">1</span></div>

</pre></div>

</div>
</div>
<footer>

<hr/>

<div role="contentinfo">
<p>&#169; Copyright 2023, sakamoto.</p>
</div>

Built with <a href="https://www.sphinx-doc.org/">Sphinx</a> using a
<a href="https://github.com/readthedocs/sphinx_rtd_theme">theme</a>
provided by <a href="https://readthedocs.org">Read the Docs</a>.


</footer>
</div>
</div>
</section>
</div>
<script>
jQuery(function () {
SphinxRtdTheme.Navigation.enable(true);
});
</script>

</body>
</html>
125 changes: 125 additions & 0 deletions _modules/dagstream/utils/errors.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
<!DOCTYPE html>
<html class="writer-html5" lang="en" >
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>dagstream.utils.errors &mdash; dagstream 0.1.4 documentation</title>
<link rel="stylesheet" href="../../../_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="../../../_static/css/theme.css" type="text/css" />
<!--[if lt IE 9]>
<script src="../../../_static/js/html5shiv.min.js"></script>
<![endif]-->

<script src="../../../_static/jquery.js?v=5d32c60e"></script>
<script src="../../../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
<script src="../../../_static/documentation_options.js?v=fd825880"></script>
<script src="../../../_static/doctools.js?v=9a2dae69"></script>
<script src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="https://unpkg.com/[email protected]/dist/mermaid.min.js"></script>
<script>mermaid.initialize({startOnLoad:true});</script>
<script src="../../../_static/js/theme.js"></script>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
</head>

<body class="wy-body-for-nav">
<div class="wy-grid-for-nav">
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
<div class="wy-side-scroll">
<div class="wy-side-nav-search" >



<a href="../../../index.html" class="icon icon-home">
dagstream
</a>
<div class="version">
0.1.4
</div>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="../../../search.html" method="get">
<input type="text" name="q" placeholder="Search docs" aria-label="Search docs" />
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
</div>
</div><div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="Navigation menu">
<p class="caption" role="heading"><span class="caption-text">Contents</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../../../examples.html">Example</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../reference/index.html">API Reference</a></li>
</ul>

</div>
</div>
</nav>

<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap"><nav class="wy-nav-top" aria-label="Mobile navigation menu" >
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
<a href="../../../index.html">dagstream</a>
</nav>

<div class="wy-nav-content">
<div class="rst-content">
<div role="navigation" aria-label="Page navigation">
<ul class="wy-breadcrumbs">
<li><a href="../../../index.html" class="icon icon-home" aria-label="Home"></a></li>
<li class="breadcrumb-item"><a href="../../index.html">Module code</a></li>
<li class="breadcrumb-item active">dagstream.utils.errors</li>
<li class="wy-breadcrumbs-aside">
</li>
</ul>
<hr/>
</div>
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
<div itemprop="articleBody">

<h1>Source code for dagstream.utils.errors</h1><div class="highlight"><pre>
<div class="viewcode-block" id="DagStreamCycleError">
<a class="viewcode-back" href="../../../reference/generated/dagstream.utils.errors.DagStreamCycleError.html#dagstream.utils.errors.DagStreamCycleError">[docs]</a>
<span></span><span class="k">class</span> <span class="nc">DagStreamCycleError</span><span class="p">(</span><span class="ne">ValueError</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Subclass of ValueError raises if a cycle is found in graph.&quot;&quot;&quot;</span>

<span class="k">pass</span></div>



<div class="viewcode-block" id="DagStreamNotReadyError">
<a class="viewcode-back" href="../../../reference/generated/dagstream.utils.errors.DagStreamNotReadyError.html#dagstream.utils.errors.DagStreamNotReadyError">[docs]</a>
<span class="k">class</span> <span class="nc">DagStreamNotReadyError</span><span class="p">(</span><span class="ne">ValueError</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Subclass of ValueError raises by INodeState if some attributes are accessed</span>
<span class="sd"> unless nodes state is properly prepared.</span>
<span class="sd"> &quot;&quot;&quot;</span>

<span class="k">pass</span></div>

</pre></div>

</div>
</div>
<footer>

<hr/>

<div role="contentinfo">
<p>&#169; Copyright 2023, sakamoto.</p>
</div>

Built with <a href="https://www.sphinx-doc.org/">Sphinx</a> using a
<a href="https://github.com/readthedocs/sphinx_rtd_theme">theme</a>
provided by <a href="https://readthedocs.org">Read the Docs</a>.


</footer>
</div>
</div>
</section>
</div>
<script>
jQuery(function () {
SphinxRtdTheme.Navigation.enable(true);
});
</script>

</body>
</html>
Loading

0 comments on commit b5d60f6

Please sign in to comment.