Skip to content

Commit

Permalink
Deploying to pages from @ ab5bfee 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
d33bs committed Oct 6, 2023
1 parent 82c5c3a commit d6fe0c1
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions _modules/cytotable/utils.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ <h1>Source code for cytotable.utils</h1><div class="highlight"><pre>
<span class="kn">from</span> <span class="nn">cloudpathlib.exceptions</span> <span class="kn">import</span> <span class="n">InvalidPrefixError</span>
<span class="kn">from</span> <span class="nn">parsl.app.app</span> <span class="kn">import</span> <span class="n">AppBase</span>
<span class="kn">from</span> <span class="nn">parsl.config</span> <span class="kn">import</span> <span class="n">Config</span>
<span class="kn">from</span> <span class="nn">parsl.errors</span> <span class="kn">import</span> <span class="n">ConfigurationError</span>
<span class="kn">from</span> <span class="nn">parsl.errors</span> <span class="kn">import</span> <span class="n">NoDataFlowKernelError</span>
<span class="kn">from</span> <span class="nn">parsl.executors</span> <span class="kn">import</span> <span class="n">HighThroughputExecutor</span>

<span class="n">logger</span> <span class="o">=</span> <span class="n">logging</span><span class="o">.</span><span class="n">getLogger</span><span class="p">(</span><span class="vm">__name__</span><span class="p">)</span>
Expand Down Expand Up @@ -142,15 +142,10 @@ <h1>Source code for cytotable.utils</h1><div class="highlight"><pre>
<span class="k">try</span><span class="p">:</span>
<span class="c1"># try to reference Parsl dataflowkernel</span>
<span class="n">parsl</span><span class="o">.</span><span class="n">dfk</span><span class="p">()</span>
<span class="k">except</span> <span class="n">ConfigurationError</span> <span class="k">as</span> <span class="n">pce</span><span class="p">:</span>
<span class="c1"># if we detect a Parsl ConfigurationError that states we need to load config</span>
<span class="k">except</span> <span class="n">NoDataFlowKernelError</span><span class="p">:</span>
<span class="c1"># if we detect a Parsl NoDataFlowKernelError</span>
<span class="c1"># return false to indicate parsl config has not yet been loaded.</span>
<span class="k">if</span> <span class="n">pce</span><span class="o">.</span><span class="n">args</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span> <span class="o">==</span> <span class="s2">&quot;Must first load config&quot;</span><span class="p">:</span>
<span class="k">return</span> <span class="kc">False</span>

<span class="c1"># otherwise we raise other ConfigurationError&#39;s</span>
<span class="k">else</span><span class="p">:</span>
<span class="k">raise</span>
<span class="k">return</span> <span class="kc">False</span>

<span class="c1"># otherwise we indicate parsl config has already been loaded</span>
<span class="k">return</span> <span class="kc">True</span></div>
Expand Down

0 comments on commit d6fe0c1

Please sign in to comment.