Skip to content

Commit

Permalink
Deploying to gh-pages from @ 602a831 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
JoschD committed Oct 28, 2024
1 parent 916aa90 commit b7cbeba
Show file tree
Hide file tree
Showing 53 changed files with 571 additions and 317 deletions.
4 changes: 2 additions & 2 deletions .buildinfo
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: 77757b59b2cf2e75f84d064425637e5b
# This file records the configuration used when building these files. When it is not found, a full rebuild will be done.
config: cf72ccd6a5bdc1d8b2e2febb18bf8288
tags: 645f666f9bcd5a90fca523b33c5a78b7
30 changes: 14 additions & 16 deletions _modules/index.html
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@


<!DOCTYPE html>
<html class="writer-html5" lang="en" >
<html class="writer-html5" lang="en" data-content_root="../">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Overview: module code &mdash; irnl-rdt-correction 1.1.1 documentation</title>
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="../_static/css/theme.css" type="text/css" />
<link rel="stylesheet" href="../_static/css/custom.css" type="text/css" />
<!--[if lt IE 9]>
<script src="../_static/js/html5shiv.min.js"></script>
<![endif]-->
<title>Overview: module code &mdash; irnl-rdt-correction 1.1.2 documentation</title>
<link rel="stylesheet" type="text/css" href="../_static/pygments.css?v=fa44fd50" />
<link rel="stylesheet" type="text/css" href="../_static/css/theme.css?v=e59714d7" />
<link rel="stylesheet" type="text/css" href="../_static/css/custom.css?v=449bdd91" />


<script src="../_static/jquery.js?v=5d32c60e"></script>
<script src="../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
<script src="../_static/documentation_options.js?v=58fbf978"></script>
<script src="../_static/doctools.js?v=888ff710"></script>
<script src="../_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="../_static/jquery.js?v=5d32c60e"></script>
<script src="../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
<script src="../_static/documentation_options.js?v=6f037312"></script>
<script src="../_static/doctools.js?v=9bcbadda"></script>
<script src="../_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="../_static/js/theme.js"></script>
<link rel="index" title="Index" href="../genindex.html" />
<link rel="search" title="Search" href="../search.html" />
Expand All @@ -33,9 +33,6 @@
irnl-rdt-correction
<img src="../_static/omc_logo.svg" class="logo" alt="Logo"/>
</a>
<div class="version">
1.1
</div>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="../search.html" method="get">
<input type="text" name="q" placeholder="Search docs" aria-label="Search docs" />
Expand Down Expand Up @@ -73,6 +70,7 @@
<li class="toctree-l1"><a class="reference internal" href="../tools.html#irnl_rdt_correction.io_handling.build_correction_df"><code class="docutils literal notranslate"><span class="pre">build_correction_df()</span></code></a></li>
<li class="toctree-l1"><a class="reference internal" href="../tools.html#irnl_rdt_correction.io_handling.build_correction_str"><code class="docutils literal notranslate"><span class="pre">build_correction_str()</span></code></a></li>
<li class="toctree-l1"><a class="reference internal" href="../tools.html#irnl_rdt_correction.io_handling.build_correction_str_from_df"><code class="docutils literal notranslate"><span class="pre">build_correction_str_from_df()</span></code></a></li>
<li class="toctree-l1"><a class="reference internal" href="../tools.html#irnl_rdt_correction.io_handling.convert_numeric_columns_to_float"><code class="docutils literal notranslate"><span class="pre">convert_numeric_columns_to_float()</span></code></a></li>
<li class="toctree-l1"><a class="reference internal" href="../tools.html#irnl_rdt_correction.io_handling.get_and_write_output"><code class="docutils literal notranslate"><span class="pre">get_and_write_output()</span></code></a></li>
<li class="toctree-l1"><a class="reference internal" href="../tools.html#irnl_rdt_correction.io_handling.get_optics"><code class="docutils literal notranslate"><span class="pre">get_optics()</span></code></a></li>
<li class="toctree-l1"><a class="reference internal" href="../tools.html#irnl_rdt_correction.io_handling.get_tfs"><code class="docutils literal notranslate"><span class="pre">get_tfs()</span></code></a></li>
Expand Down
35 changes: 17 additions & 18 deletions _modules/irnl_rdt_correction/equation_system.html
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@


<!DOCTYPE html>
<html class="writer-html5" lang="en" >
<html class="writer-html5" lang="en" data-content_root="../../">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>irnl_rdt_correction.equation_system &mdash; irnl-rdt-correction 1.1.1 documentation</title>
<link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="../../_static/css/theme.css" type="text/css" />
<link rel="stylesheet" href="../../_static/css/custom.css" type="text/css" />
<!--[if lt IE 9]>
<script src="../../_static/js/html5shiv.min.js"></script>
<![endif]-->
<title>irnl_rdt_correction.equation_system &mdash; irnl-rdt-correction 1.1.2 documentation</title>
<link rel="stylesheet" type="text/css" href="../../_static/pygments.css?v=fa44fd50" />
<link rel="stylesheet" type="text/css" href="../../_static/css/theme.css?v=e59714d7" />
<link rel="stylesheet" type="text/css" href="../../_static/css/custom.css?v=449bdd91" />


<script src="../../_static/jquery.js?v=5d32c60e"></script>
<script src="../../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
<script src="../../_static/documentation_options.js?v=58fbf978"></script>
<script src="../../_static/doctools.js?v=888ff710"></script>
<script src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="../../_static/jquery.js?v=5d32c60e"></script>
<script src="../../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
<script src="../../_static/documentation_options.js?v=6f037312"></script>
<script src="../../_static/doctools.js?v=9bcbadda"></script>
<script src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="../../_static/js/theme.js"></script>
<link rel="index" title="Index" href="../../genindex.html" />
<link rel="search" title="Search" href="../../search.html" />
Expand All @@ -33,9 +33,6 @@
irnl-rdt-correction
<img src="../../_static/omc_logo.svg" class="logo" alt="Logo"/>
</a>
<div class="version">
1.1
</div>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="../../search.html" method="get">
<input type="text" name="q" placeholder="Search docs" aria-label="Search docs" />
Expand Down Expand Up @@ -73,6 +70,7 @@
<li class="toctree-l1"><a class="reference internal" href="../../tools.html#irnl_rdt_correction.io_handling.build_correction_df"><code class="docutils literal notranslate"><span class="pre">build_correction_df()</span></code></a></li>
<li class="toctree-l1"><a class="reference internal" href="../../tools.html#irnl_rdt_correction.io_handling.build_correction_str"><code class="docutils literal notranslate"><span class="pre">build_correction_str()</span></code></a></li>
<li class="toctree-l1"><a class="reference internal" href="../../tools.html#irnl_rdt_correction.io_handling.build_correction_str_from_df"><code class="docutils literal notranslate"><span class="pre">build_correction_str_from_df()</span></code></a></li>
<li class="toctree-l1"><a class="reference internal" href="../../tools.html#irnl_rdt_correction.io_handling.convert_numeric_columns_to_float"><code class="docutils literal notranslate"><span class="pre">convert_numeric_columns_to_float()</span></code></a></li>
<li class="toctree-l1"><a class="reference internal" href="../../tools.html#irnl_rdt_correction.io_handling.get_and_write_output"><code class="docutils literal notranslate"><span class="pre">get_and_write_output()</span></code></a></li>
<li class="toctree-l1"><a class="reference internal" href="../../tools.html#irnl_rdt_correction.io_handling.get_optics"><code class="docutils literal notranslate"><span class="pre">get_optics()</span></code></a></li>
<li class="toctree-l1"><a class="reference internal" href="../../tools.html#irnl_rdt_correction.io_handling.get_tfs"><code class="docutils literal notranslate"><span class="pre">get_tfs()</span></code></a></li>
Expand Down Expand Up @@ -129,6 +127,7 @@ <h1>Source code for irnl_rdt_correction.equation_system</h1><div class="highligh

<span class="sd">&quot;&quot;&quot;</span>
<span class="kn">import</span> <span class="nn">logging</span>
<span class="kn">import</span> <span class="nn">math</span>
<span class="kn">from</span> <span class="nn">typing</span> <span class="kn">import</span> <span class="n">Dict</span><span class="p">,</span> <span class="n">List</span><span class="p">,</span> <span class="n">Sequence</span><span class="p">,</span> <span class="n">Set</span><span class="p">,</span> <span class="n">Tuple</span>

<span class="kn">import</span> <span class="nn">numpy</span> <span class="k">as</span> <span class="nn">np</span>
Expand Down Expand Up @@ -493,7 +492,7 @@ <h1>Source code for irnl_rdt_correction.equation_system</h1><div class="highligh
<span class="n">iksl_err</span> <span class="o">=</span> <span class="mi">1</span><span class="n">j</span><span class="o">*</span><span class="n">errors_df</span><span class="o">.</span><span class="n">loc</span><span class="p">[</span><span class="n">elements</span><span class="p">,</span> <span class="sa">f</span><span class="s2">&quot;K</span><span class="si">{</span><span class="n">n_mad</span><span class="si">:</span><span class="s2">d</span><span class="si">}</span><span class="s2">SL&quot;</span><span class="p">]</span>

<span class="n">k_sum</span> <span class="o">+=</span> <span class="p">((</span><span class="n">kl_opt</span> <span class="o">+</span> <span class="n">kl_err</span> <span class="o">+</span> <span class="n">iksl_opt</span> <span class="o">+</span> <span class="n">iksl_err</span><span class="p">)</span> <span class="o">*</span>
<span class="p">(</span><span class="n">dx_idy</span><span class="o">**</span><span class="n">q</span><span class="p">)</span> <span class="o">/</span> <span class="n">np</span><span class="o">.</span><span class="n">math</span><span class="o">.</span><span class="n">factorial</span><span class="p">(</span><span class="n">q</span><span class="p">))</span>
<span class="p">(</span><span class="n">dx_idy</span><span class="o">**</span><span class="n">q</span><span class="p">)</span> <span class="o">/</span> <span class="n">math</span><span class="o">.</span><span class="n">factorial</span><span class="p">(</span><span class="n">q</span><span class="p">))</span>

<span class="c1"># note the minus sign before the sum!</span>
<span class="n">integral</span> <span class="o">+=</span> <span class="o">-</span><span class="nb">sum</span><span class="p">(</span><span class="n">np</span><span class="o">.</span><span class="n">real</span><span class="p">(</span><span class="n">i_pow</span><span class="p">(</span><span class="n">lm</span><span class="p">)</span> <span class="o">*</span> <span class="n">k_sum</span><span class="o">.</span><span class="n">to_numpy</span><span class="p">())</span> <span class="o">*</span> <span class="p">(</span><span class="n">side_sign</span> <span class="o">*</span> <span class="n">betax</span> <span class="o">*</span> <span class="n">betay</span><span class="p">)</span><span class="o">.</span><span class="n">to_numpy</span><span class="p">())</span>
Expand Down Expand Up @@ -548,7 +547,7 @@ <h1>Source code for irnl_rdt_correction.equation_system</h1><div class="highligh
<span class="n">dx</span> <span class="o">=</span> <span class="n">twiss_df</span><span class="o">.</span><span class="n">loc</span><span class="p">[</span><span class="n">corrector</span><span class="o">.</span><span class="n">name</span><span class="p">,</span> <span class="n">X</span><span class="p">]</span> <span class="o">+</span> <span class="n">errors_df</span><span class="o">.</span><span class="n">loc</span><span class="p">[</span><span class="n">corrector</span><span class="o">.</span><span class="n">name</span><span class="p">,</span> <span class="sa">f</span><span class="s2">&quot;</span><span class="si">{</span><span class="n">DELTA</span><span class="si">}{</span><span class="n">X</span><span class="si">}</span><span class="s2">&quot;</span><span class="p">]</span>
<span class="n">dy</span> <span class="o">=</span> <span class="n">twiss_df</span><span class="o">.</span><span class="n">loc</span><span class="p">[</span><span class="n">corrector</span><span class="o">.</span><span class="n">name</span><span class="p">,</span> <span class="n">Y</span><span class="p">]</span> <span class="o">+</span> <span class="n">errors_df</span><span class="o">.</span><span class="n">loc</span><span class="p">[</span><span class="n">corrector</span><span class="o">.</span><span class="n">name</span><span class="p">,</span> <span class="sa">f</span><span class="s2">&quot;</span><span class="si">{</span><span class="n">DELTA</span><span class="si">}{</span><span class="n">Y</span><span class="si">}</span><span class="s2">&quot;</span><span class="p">]</span>
<span class="n">dx_idy</span> <span class="o">=</span> <span class="n">dx</span> <span class="o">+</span> <span class="mi">1</span><span class="n">j</span><span class="o">*</span><span class="n">dy</span>
<span class="n">z_cmplx</span> <span class="o">=</span> <span class="p">(</span><span class="n">dx_idy</span><span class="o">**</span><span class="n">p</span><span class="p">)</span> <span class="o">/</span> <span class="n">np</span><span class="o">.</span><span class="n">math</span><span class="o">.</span><span class="n">factorial</span><span class="p">(</span><span class="n">p</span><span class="p">)</span> <span class="c1"># Eq. (32)</span>
<span class="n">z_cmplx</span> <span class="o">=</span> <span class="p">(</span><span class="n">dx_idy</span><span class="o">**</span><span class="n">p</span><span class="p">)</span> <span class="o">/</span> <span class="n">math</span><span class="o">.</span><span class="n">factorial</span><span class="p">(</span><span class="n">p</span><span class="p">)</span> <span class="c1"># Eq. (32)</span>

<span class="c1"># Get the correct part of z_cmplx, see Eq. (36) in [DillyNonlinearIRCorrections2023]_</span>
<span class="k">if</span> <span class="p">(</span><span class="n">corrector</span><span class="o">.</span><span class="n">skew</span> <span class="ow">and</span> <span class="n">is_odd</span><span class="p">(</span><span class="n">lm</span><span class="p">))</span> <span class="ow">or</span> <span class="p">(</span><span class="ow">not</span> <span class="n">corrector</span><span class="o">.</span><span class="n">skew</span> <span class="ow">and</span> <span class="n">is_even</span><span class="p">(</span><span class="n">lm</span><span class="p">)):</span>
Expand Down
30 changes: 14 additions & 16 deletions _modules/irnl_rdt_correction/input_options.html
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@


<!DOCTYPE html>
<html class="writer-html5" lang="en" >
<html class="writer-html5" lang="en" data-content_root="../../">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>irnl_rdt_correction.input_options &mdash; irnl-rdt-correction 1.1.1 documentation</title>
<link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="../../_static/css/theme.css" type="text/css" />
<link rel="stylesheet" href="../../_static/css/custom.css" type="text/css" />
<!--[if lt IE 9]>
<script src="../../_static/js/html5shiv.min.js"></script>
<![endif]-->
<title>irnl_rdt_correction.input_options &mdash; irnl-rdt-correction 1.1.2 documentation</title>
<link rel="stylesheet" type="text/css" href="../../_static/pygments.css?v=fa44fd50" />
<link rel="stylesheet" type="text/css" href="../../_static/css/theme.css?v=e59714d7" />
<link rel="stylesheet" type="text/css" href="../../_static/css/custom.css?v=449bdd91" />


<script src="../../_static/jquery.js?v=5d32c60e"></script>
<script src="../../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
<script src="../../_static/documentation_options.js?v=58fbf978"></script>
<script src="../../_static/doctools.js?v=888ff710"></script>
<script src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="../../_static/jquery.js?v=5d32c60e"></script>
<script src="../../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
<script src="../../_static/documentation_options.js?v=6f037312"></script>
<script src="../../_static/doctools.js?v=9bcbadda"></script>
<script src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="../../_static/js/theme.js"></script>
<link rel="index" title="Index" href="../../genindex.html" />
<link rel="search" title="Search" href="../../search.html" />
Expand All @@ -33,9 +33,6 @@
irnl-rdt-correction
<img src="../../_static/omc_logo.svg" class="logo" alt="Logo"/>
</a>
<div class="version">
1.1
</div>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="../../search.html" method="get">
<input type="text" name="q" placeholder="Search docs" aria-label="Search docs" />
Expand Down Expand Up @@ -73,6 +70,7 @@
<li class="toctree-l1"><a class="reference internal" href="../../tools.html#irnl_rdt_correction.io_handling.build_correction_df"><code class="docutils literal notranslate"><span class="pre">build_correction_df()</span></code></a></li>
<li class="toctree-l1"><a class="reference internal" href="../../tools.html#irnl_rdt_correction.io_handling.build_correction_str"><code class="docutils literal notranslate"><span class="pre">build_correction_str()</span></code></a></li>
<li class="toctree-l1"><a class="reference internal" href="../../tools.html#irnl_rdt_correction.io_handling.build_correction_str_from_df"><code class="docutils literal notranslate"><span class="pre">build_correction_str_from_df()</span></code></a></li>
<li class="toctree-l1"><a class="reference internal" href="../../tools.html#irnl_rdt_correction.io_handling.convert_numeric_columns_to_float"><code class="docutils literal notranslate"><span class="pre">convert_numeric_columns_to_float()</span></code></a></li>
<li class="toctree-l1"><a class="reference internal" href="../../tools.html#irnl_rdt_correction.io_handling.get_and_write_output"><code class="docutils literal notranslate"><span class="pre">get_and_write_output()</span></code></a></li>
<li class="toctree-l1"><a class="reference internal" href="../../tools.html#irnl_rdt_correction.io_handling.get_optics"><code class="docutils literal notranslate"><span class="pre">get_optics()</span></code></a></li>
<li class="toctree-l1"><a class="reference internal" href="../../tools.html#irnl_rdt_correction.io_handling.get_tfs"><code class="docutils literal notranslate"><span class="pre">get_tfs()</span></code></a></li>
Expand Down
Loading

0 comments on commit b7cbeba

Please sign in to comment.