Skip to content

Commit

Permalink
Deploying to gh-pages from @ 2ae8acb 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
awegsche committed Sep 20, 2023
1 parent c477af7 commit eb698f6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _modules/omc3/correction/response_madx.html
Original file line number Diff line number Diff line change
Expand Up @@ -310,9 +310,9 @@ <h1>Source code for omc3.correction.response_madx</h1><div class="highlight"><pr
<span class="k">break</span>
<span class="n">var</span> <span class="o">=</span> <span class="n">variables</span><span class="p">[</span><span class="n">var_idx</span><span class="p">]</span>
<span class="n">incr_dict</span><span class="p">[</span><span class="n">var</span><span class="p">]</span> <span class="o">=</span> <span class="n">delta_k</span>
<span class="n">current_job</span> <span class="o">+=</span> <span class="sa">f</span><span class="s2">&quot;</span><span class="si">{</span><span class="n">var</span><span class="si">}</span><span class="s2">=</span><span class="si">{</span><span class="n">var</span><span class="si">}{</span><span class="n">delta_k</span><span class="si">:</span><span class="s2">+f</span><span class="si">}</span><span class="s2">;</span><span class="se">\n</span><span class="s2">&quot;</span>
<span class="n">current_job</span> <span class="o">+=</span> <span class="sa">f</span><span class="s2">&quot;</span><span class="si">{</span><span class="n">var</span><span class="si">}</span><span class="s2"> = </span><span class="si">{</span><span class="n">var</span><span class="si">}{</span><span class="n">delta_k</span><span class="si">:</span><span class="s2">+.15e</span><span class="si">}</span><span class="s2">;</span><span class="se">\n</span><span class="s2">&quot;</span>
<span class="n">current_job</span> <span class="o">+=</span> <span class="sa">f</span><span class="s2">&quot;twiss, file=&#39;</span><span class="si">{</span><span class="nb">str</span><span class="p">(</span><span class="n">temp_dir</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="sa">f</span><span class="s1">&#39;twiss.</span><span class="si">{</span><span class="n">var</span><span class="si">}</span><span class="s1">&#39;</span><span class="p">)</span><span class="si">}</span><span class="s2">&#39;;</span><span class="se">\n</span><span class="s2">&quot;</span>
<span class="n">current_job</span> <span class="o">+=</span> <span class="sa">f</span><span class="s2">&quot;</span><span class="si">{</span><span class="n">var</span><span class="si">}</span><span class="s2">=</span><span class="si">{</span><span class="n">var</span><span class="si">}{</span><span class="o">-</span><span class="n">delta_k</span><span class="si">:</span><span class="s2">+f</span><span class="si">}</span><span class="s2">;</span><span class="se">\n\n</span><span class="s2">&quot;</span>
<span class="n">current_job</span> <span class="o">+=</span> <span class="sa">f</span><span class="s2">&quot;</span><span class="si">{</span><span class="n">var</span><span class="si">}</span><span class="s2"> = </span><span class="si">{</span><span class="n">var</span><span class="si">}{</span><span class="o">-</span><span class="n">delta_k</span><span class="si">:</span><span class="s2">+.15e</span><span class="si">}</span><span class="s2">;</span><span class="se">\n\n</span><span class="s2">&quot;</span>

<span class="k">if</span> <span class="n">proc_idx</span> <span class="o">==</span> <span class="n">num_proc</span> <span class="o">-</span> <span class="mi">1</span><span class="p">:</span>
<span class="n">current_job</span> <span class="o">+=</span> <span class="sa">f</span><span class="s2">&quot;twiss, file=&#39;</span><span class="si">{</span><span class="nb">str</span><span class="p">(</span><span class="n">temp_dir</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="s1">&#39;twiss.0&#39;</span><span class="p">)</span><span class="si">}</span><span class="s2">&#39;;</span><span class="se">\n</span><span class="s2">&quot;</span>
Expand Down
4 changes: 4 additions & 0 deletions _modules/omc3/model/accelerators/lhc.html
Original file line number Diff line number Diff line change
Expand Up @@ -564,6 +564,10 @@ <h1>Source code for omc3.model.accelerators.lhc</h1><div class="highlight"><pre>


<span class="k">def</span> <span class="nf">important_phase_advances</span><span class="p">(</span><span class="bp">self</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="n">List</span><span class="p">[</span><span class="n">List</span><span class="p">[</span><span class="nb">str</span><span class="p">]]:</span>
<span class="k">if</span> <span class="s2">&quot;hl&quot;</span> <span class="ow">in</span> <span class="bp">self</span><span class="o">.</span><span class="n">year</span><span class="o">.</span><span class="n">lower</span><span class="p">():</span>
<span class="c1"># skip if HiLumi, TODO: insert phase advances when they are finalised</span>
<span class="k">return</span> <span class="p">[]</span>

<span class="k">if</span> <span class="bp">self</span><span class="o">.</span><span class="n">beam</span> <span class="o">==</span> <span class="mi">2</span><span class="p">:</span>
<span class="k">return</span> <span class="p">[[</span><span class="s2">&quot;MKD.O5R6.B2&quot;</span><span class="p">,</span> <span class="s2">&quot;TCTPH.4R1.B2&quot;</span><span class="p">],</span> <span class="p">[</span><span class="s2">&quot;MKD.O5R6.B2&quot;</span><span class="p">,</span> <span class="s2">&quot;TCTPH.4R5.B2&quot;</span><span class="p">]]</span>
<span class="k">if</span> <span class="bp">self</span><span class="o">.</span><span class="n">beam</span> <span class="o">==</span> <span class="mi">1</span><span class="p">:</span>
Expand Down
Binary file modified environment.pickle
Binary file not shown.

0 comments on commit eb698f6

Please sign in to comment.