Skip to content

Commit

Permalink
Merge pull request #18 from intel/qatlib23.08_updates
Browse files Browse the repository at this point in the history
one line
  • Loading branch information
johnfial authored Sep 8, 2023
2 parents 60f90c5 + ee16d0c commit 6e71cec
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/PG/infrastructure_device_telemetry.html
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,8 @@ <h3>Ring Pair Level Telemetry Values<a class="headerlink" href="#ring-pair-level
<span class="n">out</span><span class="p">,</span><span class="n">err</span><span class="o">=</span><span class="n">sp</span><span class="o">.</span><span class="n">communicate</span><span class="p">()</span>

<span class="c1"># Split string into list of strings</span>
<span class="n">original_array</span><span class="o">=</span> <span class="n">out</span><span class="o">.</span><span class="n">split</span><span class="p">()</span><span class="n">output_telem</span> <span class="o">=</span> <span class="nb">sorted</span><span class="p">(</span><span class="n">original_array</span><span class="p">,</span> <span class="n">key</span><span class="o">=</span><span class="k">lambda</span> <span class="n">x</span><span class="p">:</span> <span class="p">(</span><span class="n">x</span><span class="o">.</span><span class="n">split</span><span class="p">(</span><span class="s1">&#39;:&#39;</span><span class="p">)[</span><span class="mi">1</span><span class="p">],</span> <span class="mi">16</span><span class="p">))</span>
<span class="n">original_array</span><span class="o">=</span> <span class="n">out</span><span class="o">.</span><span class="n">split</span><span class="p">()</span>
<span class="n">output_telem</span> <span class="o">=</span> <span class="nb">sorted</span><span class="p">(</span><span class="n">original_array</span><span class="p">,</span> <span class="n">key</span><span class="o">=</span><span class="k">lambda</span> <span class="n">x</span><span class="p">:</span> <span class="p">(</span><span class="n">x</span><span class="o">.</span><span class="n">split</span><span class="p">(</span><span class="s1">&#39;:&#39;</span><span class="p">)[</span><span class="mi">1</span><span class="p">],</span> <span class="mi">16</span><span class="p">))</span>

<span class="n">i</span> <span class="o">=</span> <span class="mi">0</span>
<span class="n">state</span> <span class="o">=</span> <span class="s2">&quot;down&quot;</span>
Expand Down

0 comments on commit 6e71cec

Please sign in to comment.