Skip to content

Commit

Permalink
Deploying to gh-pages from main @ 37b661a 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
mogres committed Oct 19, 2023
1 parent 042bd28 commit a0ff153
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions _modules/cellpack/autopack/Environment.html
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,9 @@ <h1>Source code for cellpack.autopack.Environment</h1><div class="highlight"><pr
<span class="bp">self</span><span class="o">.</span><span class="n">grid_file_out</span> <span class="o">=</span> <span class="p">(</span>
<span class="sa">f</span><span class="s2">&quot;</span><span class="si">{</span><span class="bp">self</span><span class="o">.</span><span class="n">out_folder</span><span class="si">}</span><span class="s2">/</span><span class="si">{</span><span class="bp">self</span><span class="o">.</span><span class="n">name</span><span class="si">}</span><span class="s2">_</span><span class="si">{</span><span class="n">config</span><span class="p">[</span><span class="s1">&#39;name&#39;</span><span class="p">]</span><span class="si">}</span><span class="s2">_</span><span class="si">{</span><span class="bp">self</span><span class="o">.</span><span class="n">version</span><span class="si">}</span><span class="s2">_grid.dat&quot;</span>
<span class="p">)</span>
<span class="k">if</span> <span class="n">recipe</span><span class="o">.</span><span class="n">get</span><span class="p">(</span><span class="s2">&quot;grid_file_path&quot;</span><span class="p">)</span> <span class="ow">is</span> <span class="ow">not</span> <span class="kc">None</span><span class="p">:</span>
<span class="k">if</span> <span class="n">os</span><span class="o">.</span><span class="n">path</span><span class="o">.</span><span class="n">isfile</span><span class="p">(</span><span class="n">recipe</span><span class="p">[</span><span class="s2">&quot;grid_file_path&quot;</span><span class="p">]):</span>
<span class="bp">self</span><span class="o">.</span><span class="n">grid_file_out</span> <span class="o">=</span> <span class="n">recipe</span><span class="p">[</span><span class="s2">&quot;grid_file_path&quot;</span><span class="p">]</span>

<span class="n">should_load_grid_file</span> <span class="o">=</span> <span class="p">(</span>
<span class="n">os</span><span class="o">.</span><span class="n">path</span><span class="o">.</span><span class="n">isfile</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">grid_file_out</span><span class="p">)</span> <span class="ow">and</span> <span class="bp">self</span><span class="o">.</span><span class="n">load_from_grid_file</span>
Expand Down

0 comments on commit a0ff153

Please sign in to comment.