Skip to content

Commit

Permalink
Latest docs build.
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Mar 7, 2023
1 parent 5ec89eb commit 3dd682b
Show file tree
Hide file tree
Showing 20 changed files with 53 additions and 574 deletions.
Binary file modified docs/build/html/.doctrees/classes/gillespy2.core.doctree
Binary file not shown.
Binary file modified docs/build/html/.doctrees/classes/gillespy2.solvers.doctree
Binary file not shown.
Binary file not shown.
Binary file modified docs/build/html/.doctrees/environment.pickle
Binary file not shown.
16 changes: 8 additions & 8 deletions docs/build/html/_modules/gillespy2/core/model.html
Original file line number Diff line number Diff line change
Expand Up @@ -1155,7 +1155,7 @@ <h1>Source code for gillespy2.core.model</h1><div class="highlight"><pre>

<div class="viewcode-block" id="Model.timespan"><a class="viewcode-back" href="../../../classes/gillespy2.core.html#gillespy2.core.model.Model.timespan">[docs]</a> <span class="k">def</span> <span class="nf">timespan</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">time_span</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;</span>
<span class="sd"> Set the time span of simulation. StochKit does not support non-uniform</span>
<span class="sd"> Set the time span of simulation. GillesPy2 does not support non-uniform</span>
<span class="sd"> timespans.</span>

<span class="sd"> :param time_span: Evenly-spaced list of times at which to sample the species populations</span>
Expand Down Expand Up @@ -1461,7 +1461,7 @@ <h1>Source code for gillespy2.core.model</h1><div class="highlight"><pre>

<div class="viewcode-block" id="StochMLDocument"><a class="viewcode-back" href="../../../classes/gillespy2.core.html#gillespy2.core.model.StochMLDocument">[docs]</a><span class="k">class</span> <span class="nc">StochMLDocument</span><span class="p">():</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot; Serializiation and deserialization of a Model to/from</span>
<span class="sd"> the native StochKit2 XML format. &quot;&quot;&quot;</span>
<span class="sd"> the native XML format. &quot;&quot;&quot;</span>

<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="c1"># The root element</span>
Expand All @@ -1471,7 +1471,7 @@ <h1>Source code for gillespy2.core.model</h1><div class="highlight"><pre>
<div class="viewcode-block" id="StochMLDocument.from_model"><a class="viewcode-back" href="../../../classes/gillespy2.core.html#gillespy2.core.model.StochMLDocument.from_model">[docs]</a> <span class="nd">@classmethod</span>
<span class="k">def</span> <span class="nf">from_model</span><span class="p">(</span><span class="bp">cls</span><span class="p">,</span> <span class="n">model</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;</span>
<span class="sd"> Creates an StochKit XML document from an exisiting Model object.</span>
<span class="sd"> Creates an XML document from an exisiting Model object.</span>
<span class="sd"> This method assumes that all the parameters in the model are already</span>
<span class="sd"> resolved to scalar floats (see Model.resolveParamters).</span>

Expand Down Expand Up @@ -1546,7 +1546,7 @@ <h1>Source code for gillespy2.core.model</h1><div class="highlight"><pre>

<div class="viewcode-block" id="StochMLDocument.from_file"><a class="viewcode-back" href="../../../classes/gillespy2.core.html#gillespy2.core.model.StochMLDocument.from_file">[docs]</a> <span class="nd">@classmethod</span>
<span class="k">def</span> <span class="nf">from_file</span><span class="p">(</span><span class="bp">cls</span><span class="p">,</span> <span class="n">filepath</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot; Intializes the document from an exisiting native StochKit XML</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot; Intializes the document from an exisiting native XML</span>
<span class="sd"> file read from disk. &quot;&quot;&quot;</span>
<span class="n">tree</span> <span class="o">=</span> <span class="n">eTree</span><span class="o">.</span><span class="n">parse</span><span class="p">(</span><span class="n">filepath</span><span class="p">)</span>
<span class="n">root</span> <span class="o">=</span> <span class="n">tree</span><span class="o">.</span><span class="n">getroot</span><span class="p">()</span>
Expand All @@ -1556,7 +1556,7 @@ <h1>Source code for gillespy2.core.model</h1><div class="highlight"><pre>

<div class="viewcode-block" id="StochMLDocument.from_string"><a class="viewcode-back" href="../../../classes/gillespy2.core.html#gillespy2.core.model.StochMLDocument.from_string">[docs]</a> <span class="nd">@classmethod</span>
<span class="k">def</span> <span class="nf">from_string</span><span class="p">(</span><span class="bp">cls</span><span class="p">,</span> <span class="n">string</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot; Intializes the document from an exisiting native StochKit XML</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot; Intializes the document from an exisiting native XML</span>
<span class="sd"> file read from disk. &quot;&quot;&quot;</span>
<span class="n">root</span> <span class="o">=</span> <span class="n">eTree</span><span class="o">.</span><span class="n">fromString</span><span class="p">(</span><span class="n">string</span><span class="p">)</span>

Expand Down Expand Up @@ -1706,8 +1706,8 @@ <h1>Source code for gillespy2.core.model</h1><div class="highlight"><pre>
<span class="k">try</span><span class="p">:</span>
<span class="n">kwargs</span><span class="p">[</span><span class="s1">&#39;rate&#39;</span><span class="p">]</span> <span class="o">=</span> <span class="n">model</span><span class="o">.</span><span class="n">listOfParameters</span><span class="p">[</span><span class="n">ratename</span><span class="p">]</span>
<span class="k">except</span> <span class="ne">KeyError</span><span class="p">:</span>
<span class="c1"># No paramter name is given. This is a valid use case</span>
<span class="c1"># in StochKit. We generate a name for the paramter,</span>
<span class="c1"># No paramter name is given. This is a valid use case.</span>
<span class="c1"># We generate a name for the paramter,</span>
<span class="c1"># and create a new parameter instance. The parameter&#39;s</span>
<span class="c1"># value should now be found in &#39;ratename&#39;.</span>
<span class="n">generated_rate_name</span> <span class="o">=</span> <span class="s2">&quot;Reaction_&quot;</span> <span class="o">+</span> <span class="n">name</span> <span class="o">+</span> \
Expand Down Expand Up @@ -1792,7 +1792,7 @@ <h1>Source code for gillespy2.core.model</h1><div class="highlight"><pre>
<span class="n">description_element</span><span class="o">.</span><span class="n">text</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">annotation</span>
<span class="n">sml_reac</span><span class="o">.</span><span class="n">append</span><span class="p">(</span><span class="n">description_element</span><span class="p">)</span>

<span class="c1"># StochKit2 wants a rate for mass-action propensites</span>
<span class="c1"># Need a rate for mass-action propensites</span>
<span class="k">if</span> <span class="n">reaction</span><span class="o">.</span><span class="n">massaction</span> <span class="ow">and</span> <span class="n">model_volume</span> <span class="o">==</span> <span class="mf">1.0</span><span class="p">:</span>
<span class="n">rate_element</span> <span class="o">=</span> <span class="n">eTree</span><span class="o">.</span><span class="n">Element</span><span class="p">(</span><span class="s1">&#39;Rate&#39;</span><span class="p">)</span>
<span class="c1"># A mass-action reactions should only have one parameter</span>
Expand Down
2 changes: 1 addition & 1 deletion docs/build/html/_modules/gillespy2/core/timespan.html
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ <h1>Source code for gillespy2.core.timespan</h1><div class="highlight"><pre>
<span class="n">isuniform</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">isclose</span><span class="p">(</span><span class="n">other_diff</span><span class="p">,</span> <span class="n">first_diff</span><span class="p">)</span><span class="o">.</span><span class="n">all</span><span class="p">()</span>

<span class="k">if</span> <span class="ow">not</span> <span class="n">isuniform</span><span class="p">:</span>
<span class="k">raise</span> <span class="n">TimespanError</span><span class="p">(</span><span class="s2">&quot;StochKit only supports uniform timespans.&quot;</span><span class="p">)</span>
<span class="k">raise</span> <span class="n">TimespanError</span><span class="p">(</span><span class="s2">&quot;GillesPy2 only supports uniform timespans.&quot;</span><span class="p">)</span>
<span class="k">if</span> <span class="n">first_diff</span> <span class="o">==</span> <span class="mi">0</span> <span class="ow">or</span> <span class="n">np</span><span class="o">.</span><span class="n">count_nonzero</span><span class="p">(</span><span class="n">other_diff</span><span class="p">)</span> <span class="o">!=</span> <span class="nb">len</span><span class="p">(</span><span class="n">other_diff</span><span class="p">):</span>
<span class="k">raise</span> <span class="n">TimespanError</span><span class="p">(</span><span class="s2">&quot;Timespan can&#39;t contain a single repeating value.&quot;</span><span class="p">)</span></div></div>
</pre></div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,8 @@ <h1>Source code for gillespy2.solvers.cpp.build.make</h1><div class="highlight">
<span class="n">result</span> <span class="o">=</span> <span class="n">subprocess</span><span class="o">.</span><span class="n">run</span><span class="p">(</span><span class="n">make_cmd</span><span class="p">,</span> <span class="n">stdout</span><span class="o">=</span><span class="n">subprocess</span><span class="o">.</span><span class="n">PIPE</span><span class="p">,</span> <span class="n">stderr</span><span class="o">=</span><span class="n">subprocess</span><span class="o">.</span><span class="n">PIPE</span><span class="p">)</span>

<span class="k">except</span> <span class="ne">KeyboardInterrupt</span><span class="p">:</span>
<span class="n">log</span><span class="o">.</span><span class="n">warning</span><span class="p">(</span><span class="sa">f</span><span class="s2">&quot;Makefile was interrupted during execution of target: &#39;</span><span class="si">{</span><span class="n">target</span><span class="si">}</span><span class="s2">&#39;, unexpected behavior may occur.&quot;</span><span class="p">)</span>
<span class="n">log</span><span class="o">.</span><span class="n">warning</span><span class="p">(</span>
<span class="sa">f</span><span class="s2">&quot;Makefile was interrupted during execution of target: &#39;</span><span class="si">{</span><span class="n">target</span><span class="si">}</span><span class="s2">&#39;, unexpected behavior may occur.&quot;</span><span class="p">)</span>

<span class="k">if</span> <span class="n">result</span><span class="o">.</span><span class="n">returncode</span> <span class="o">==</span> <span class="mi">0</span> <span class="ow">and</span> <span class="n">os</span><span class="o">.</span><span class="n">path</span><span class="o">.</span><span class="n">exists</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">output_file</span><span class="p">):</span>
<span class="k">return</span>
Expand Down
Loading

0 comments on commit 3dd682b

Please sign in to comment.