Skip to content

Commit

Permalink
deploy: 5b52159
Browse files Browse the repository at this point in the history
  • Loading branch information
calvinp0 committed Dec 13, 2023
1 parent 7b2f7d7 commit 737ab1e
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion _modules/arc/scheduler.html
Original file line number Diff line number Diff line change
Expand Up @@ -948,7 +948,16 @@ <h1>Source code for arc.scheduler</h1><div class="highlight"><pre>
<span class="bp">self</span><span class="o">.</span><span class="n">deduce_job_adapter</span><span class="p">(</span><span class="n">level</span><span class="o">=</span><span class="n">Level</span><span class="p">(</span><span class="nb">repr</span><span class="o">=</span><span class="n">level_of_theory</span><span class="p">),</span> <span class="n">job_type</span><span class="o">=</span><span class="n">job_type</span><span class="p">)</span>
<span class="n">args</span> <span class="o">=</span> <span class="p">{</span><span class="s1">&#39;keyword&#39;</span><span class="p">:</span> <span class="p">{},</span> <span class="s1">&#39;block&#39;</span><span class="p">:</span> <span class="p">{}}</span>
<span class="k">if</span> <span class="n">trsh</span><span class="p">:</span>
<span class="n">args</span><span class="p">[</span><span class="s1">&#39;trsh&#39;</span><span class="p">]</span> <span class="o">=</span> <span class="p">{</span><span class="s1">&#39;trsh&#39;</span><span class="p">:</span> <span class="n">trsh</span><span class="p">}</span>
<span class="k">if</span> <span class="nb">isinstance</span><span class="p">(</span><span class="n">trsh</span><span class="p">,</span> <span class="p">(</span><span class="nb">str</span><span class="p">,</span> <span class="nb">list</span><span class="p">)):</span>
<span class="n">args</span><span class="p">[</span><span class="s1">&#39;trsh&#39;</span><span class="p">]</span> <span class="o">=</span> <span class="p">{</span><span class="s1">&#39;trsh&#39;</span><span class="p">:</span> <span class="n">trsh</span><span class="p">}</span>
<span class="k">elif</span> <span class="nb">isinstance</span><span class="p">(</span><span class="n">trsh</span><span class="p">,</span> <span class="nb">dict</span><span class="p">)</span> <span class="ow">and</span> <span class="s1">&#39;trsh&#39;</span> <span class="ow">in</span> <span class="n">args</span><span class="p">:</span>
<span class="k">for</span> <span class="n">key</span><span class="p">,</span> <span class="n">value</span> <span class="ow">in</span> <span class="n">trsh</span><span class="o">.</span><span class="n">items</span><span class="p">():</span>
<span class="k">if</span> <span class="nb">isinstance</span><span class="p">(</span><span class="n">args</span><span class="p">[</span><span class="s1">&#39;trsh&#39;</span><span class="p">][</span><span class="n">key</span><span class="p">],</span> <span class="nb">list</span><span class="p">)</span> <span class="ow">and</span> <span class="nb">isinstance</span><span class="p">(</span><span class="n">value</span><span class="p">,</span> <span class="nb">list</span><span class="p">)</span> <span class="ow">and</span> <span class="n">key</span> <span class="ow">in</span> <span class="n">args</span><span class="p">[</span><span class="s1">&#39;trsh&#39;</span><span class="p">]:</span>
<span class="n">args</span><span class="p">[</span><span class="s1">&#39;trsh&#39;</span><span class="p">][</span><span class="n">key</span><span class="p">]</span><span class="o">.</span><span class="n">extend</span><span class="p">(</span><span class="n">value</span><span class="p">)</span>
<span class="k">else</span><span class="p">:</span>
<span class="n">args</span><span class="p">[</span><span class="s1">&#39;trsh&#39;</span><span class="p">][</span><span class="n">key</span><span class="p">]</span> <span class="o">=</span> <span class="n">value</span>
<span class="k">else</span><span class="p">:</span>
<span class="n">args</span><span class="p">[</span><span class="s1">&#39;trsh&#39;</span><span class="p">]</span> <span class="o">=</span> <span class="n">trsh</span>
<span class="k">if</span> <span class="n">shift</span><span class="p">:</span>
<span class="n">args</span><span class="p">[</span><span class="s1">&#39;shift&#39;</span><span class="p">]</span> <span class="o">=</span> <span class="n">shift</span>
<span class="k">if</span> <span class="n">scan_trsh</span><span class="p">:</span>
Expand Down

0 comments on commit 737ab1e

Please sign in to comment.