Skip to content

Commit

Permalink
Deploying to gh-pages from @ 120f1b3 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
jacoterh committed Nov 5, 2024
1 parent 5087ae1 commit f3943c5
Show file tree
Hide file tree
Showing 47 changed files with 4,235 additions and 4,274 deletions.
2 changes: 0 additions & 2 deletions _modules/smefit/analyze/chi2_utils.html
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,6 @@ <h1>Source code for smefit.analyze.chi2_utils</h1><div class="highlight"><pre>
<span class="sd"> &quot;&quot;&quot;</span>

<span class="k">def</span> <span class="fm">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">data_info</span><span class="p">):</span>

<span class="bp">self</span><span class="o">.</span><span class="n">data_info</span> <span class="o">=</span> <span class="n">data_info</span>
<span class="bp">self</span><span class="o">.</span><span class="n">chi2_df_sm</span> <span class="o">=</span> <span class="n">pd</span><span class="o">.</span><span class="n">DataFrame</span><span class="p">()</span>
<span class="bp">self</span><span class="o">.</span><span class="n">chi2_df_sm_grouped</span> <span class="o">=</span> <span class="n">pd</span><span class="o">.</span><span class="n">DataFrame</span><span class="p">()</span>
Expand Down Expand Up @@ -186,7 +185,6 @@ <h1>Source code for smefit.analyze.chi2_utils</h1><div class="highlight"><pre>
<span class="c1"># Compute per experiment</span>
<span class="n">cnt</span> <span class="o">=</span> <span class="mi">0</span>
<span class="k">for</span> <span class="n">ndat_exp</span> <span class="ow">in</span> <span class="n">datasets</span><span class="o">.</span><span class="n">NdataExp</span><span class="p">:</span>

<span class="n">chi2</span><span class="o">.</span><span class="n">append</span><span class="p">(</span>
<span class="n">np</span><span class="o">.</span><span class="n">dot</span><span class="p">(</span>
<span class="n">diff</span><span class="p">[</span><span class="n">cnt</span> <span class="p">:</span> <span class="n">cnt</span> <span class="o">+</span> <span class="n">ndat_exp</span><span class="p">],</span>
Expand Down
1 change: 0 additions & 1 deletion _modules/smefit/analyze/coefficients_utils.html
Original file line number Diff line number Diff line change
Expand Up @@ -703,7 +703,6 @@ <h1>Source code for smefit.analyze.coefficients_utils</h1><div class="highlight"
<span class="n">filled_start_angle</span> <span class="o">=</span> <span class="mi">90</span> <span class="o">-</span> <span class="mi">180</span> <span class="o">/</span> <span class="nb">len</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">coeff_info</span><span class="p">)</span>

<span class="k">for</span> <span class="n">i</span><span class="p">,</span> <span class="n">op_type</span> <span class="ow">in</span> <span class="nb">enumerate</span><span class="p">(</span><span class="n">class_order</span><span class="p">):</span>

<span class="n">filled_end_angle</span> <span class="o">=</span> <span class="p">(</span>
<span class="n">angle_sweep</span><span class="p">[</span><span class="n">i</span><span class="p">]</span> <span class="o">*</span> <span class="mi">360</span> <span class="o">+</span> <span class="n">filled_start_angle</span>
<span class="p">)</span> <span class="c1"># End angle in degrees</span>
Expand Down
1 change: 0 additions & 1 deletion _modules/smefit/analyze/fisher.html
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,6 @@ <h1>Source code for smefit.analyze.fisher</h1><div class="highlight"><pre>
<span class="sd"> &quot;&quot;&quot;</span>

<span class="k">def</span> <span class="fm">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">coefficients</span><span class="p">,</span> <span class="n">datasets</span><span class="p">,</span> <span class="n">compute_quad</span><span class="p">):</span>

<span class="bp">self</span><span class="o">.</span><span class="n">coefficients</span> <span class="o">=</span> <span class="n">coefficients</span>
<span class="bp">self</span><span class="o">.</span><span class="n">free_parameters</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">coefficients</span><span class="o">.</span><span class="n">free_parameters</span><span class="o">.</span><span class="n">index</span>
<span class="bp">self</span><span class="o">.</span><span class="n">datasets</span> <span class="o">=</span> <span class="n">datasets</span>
Expand Down
2 changes: 1 addition & 1 deletion _modules/smefit/analyze/html_utils.html
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ <h1>Source code for smefit.analyze.html_utils</h1><div class="highlight"><pre>
<span class="n">index_html</span> <span class="o">=</span> <span class="n">current_path</span><span class="o">.</span><span class="n">parent</span><span class="o">.</span><span class="n">joinpath</span><span class="p">(</span><span class="s2">&quot;assets/index.html&quot;</span><span class="p">)</span>
<span class="n">index_css</span> <span class="o">=</span> <span class="n">current_path</span><span class="o">.</span><span class="n">parent</span><span class="o">.</span><span class="n">joinpath</span><span class="p">(</span><span class="s2">&quot;assets/index.css&quot;</span><span class="p">)</span>
<span class="n">shutil</span><span class="o">.</span><span class="n">copyfile</span><span class="p">(</span><span class="n">index_css</span><span class="p">,</span> <span class="n">report_path</span><span class="o">.</span><span class="n">joinpath</span><span class="p">(</span><span class="s2">&quot;index.css&quot;</span><span class="p">))</span>
<span class="k">with</span> <span class="nb">open</span><span class="p">(</span><span class="n">index_html</span><span class="p">,</span> <span class="s2">&quot;r&quot;</span><span class="p">,</span> <span class="n">encoding</span><span class="o">=</span><span class="s2">&quot;utf-8&quot;</span><span class="p">)</span> <span class="k">as</span> <span class="n">f</span><span class="p">:</span>
<span class="k">with</span> <span class="nb">open</span><span class="p">(</span><span class="n">index_html</span><span class="p">,</span> <span class="n">encoding</span><span class="o">=</span><span class="s2">&quot;utf-8&quot;</span><span class="p">)</span> <span class="k">as</span> <span class="n">f</span><span class="p">:</span>
<span class="n">text</span> <span class="o">=</span> <span class="n">f</span><span class="o">.</span><span class="n">read</span><span class="p">()</span>

<span class="n">text</span> <span class="o">=</span> <span class="n">text</span><span class="o">.</span><span class="n">replace</span><span class="p">(</span>
Expand Down
1 change: 0 additions & 1 deletion _modules/smefit/analyze/latex_tools.html
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,6 @@ <h1>Source code for smefit.analyze.latex_tools</h1><div class="highlight"><pre>
<div class="viewcode-block" id="latex_packages">
<a class="viewcode-back" href="../../../modules/smefit/smefit.analyze.html#smefit.analyze.latex_tools.latex_packages">[docs]</a>
<span class="k">def</span> <span class="nf">latex_packages</span><span class="p">():</span>

<span class="n">L</span> <span class="o">=</span> <span class="p">[</span>
<span class="sa">r</span><span class="s2">&quot;\documentclass</span><span class="si">{article}</span><span class="s2">&quot;</span><span class="p">,</span>
<span class="sa">r</span><span class="s2">&quot;\usepackage</span><span class="si">{float}</span><span class="s2">&quot;</span><span class="p">,</span>
Expand Down
2 changes: 0 additions & 2 deletions _modules/smefit/analyze/pca.html
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,6 @@ <h1>Source code for smefit.analyze.pca</h1><div class="highlight"><pre>
<span class="sd"> &quot;&quot;&quot;</span>

<span class="k">def</span> <span class="fm">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">loaded_datasets</span><span class="p">,</span> <span class="n">coefficients</span><span class="p">,</span> <span class="n">config</span><span class="p">):</span>

<span class="bp">self</span><span class="o">.</span><span class="n">loaded_datasets</span> <span class="o">=</span> <span class="n">loaded_datasets</span>
<span class="bp">self</span><span class="o">.</span><span class="n">coefficients</span> <span class="o">=</span> <span class="n">coefficients</span>
<span class="bp">self</span><span class="o">.</span><span class="n">config</span> <span class="o">=</span> <span class="n">config</span>
Expand Down Expand Up @@ -379,7 +378,6 @@ <h1>Source code for smefit.analyze.pca</h1><div class="highlight"><pre>
<span class="sd"> &quot;&quot;&quot;</span>

<span class="k">def</span> <span class="fm">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">datasets</span><span class="p">,</span> <span class="n">coefficients</span><span class="p">,</span> <span class="n">latex_names</span><span class="p">):</span>

<span class="bp">self</span><span class="o">.</span><span class="n">coefficients</span> <span class="o">=</span> <span class="n">coefficients</span>
<span class="bp">self</span><span class="o">.</span><span class="n">datasets</span> <span class="o">=</span> <span class="n">datasets</span>
<span class="bp">self</span><span class="o">.</span><span class="n">latex_names</span> <span class="o">=</span> <span class="n">latex_names</span>
Expand Down
1 change: 0 additions & 1 deletion _modules/smefit/analyze/report.html
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,6 @@ <h1>Source code for smefit.analyze.report</h1><div class="highlight"><pre>
<span class="c1"># if dbl solution requested, add the confidence intervals, otherwise just</span>
<span class="c1"># use the sum of the hdi intervals</span>
<span class="k">if</span> <span class="mi">1</span> <span class="ow">in</span> <span class="n">dbl_solution</span><span class="p">:</span>

<span class="n">dbl_op</span> <span class="o">=</span> <span class="n">double_solution</span><span class="o">.</span><span class="n">get</span><span class="p">(</span><span class="n">fit</span><span class="o">.</span><span class="n">name</span><span class="p">,</span> <span class="kc">None</span><span class="p">)</span>
<span class="n">idx</span> <span class="o">=</span> <span class="p">[</span>
<span class="n">np</span><span class="o">.</span><span class="n">argwhere</span><span class="p">(</span>
Expand Down
2 changes: 0 additions & 2 deletions _modules/smefit/analyze/spider.html
Original file line number Diff line number Diff line change
Expand Up @@ -156,12 +156,10 @@ <h1>Source code for smefit.analyze.spider</h1><div class="highlight"><pre>
<span class="k">return</span> <span class="n">Path</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">transform</span><span class="p">(</span><span class="n">path</span><span class="o">.</span><span class="n">vertices</span><span class="p">),</span> <span class="n">path</span><span class="o">.</span><span class="n">codes</span><span class="p">)</span>

<span class="k">class</span> <span class="nc">RadarAxes</span><span class="p">(</span><span class="n">PolarAxes</span><span class="p">):</span>

<span class="n">name</span> <span class="o">=</span> <span class="s2">&quot;radar&quot;</span>
<span class="n">PolarTransform</span> <span class="o">=</span> <span class="n">RadarTransform</span>

<span class="k">def</span> <span class="fm">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="o">*</span><span class="n">args</span><span class="p">,</span> <span class="o">**</span><span class="n">kwargs</span><span class="p">):</span>

<span class="nb">super</span><span class="p">()</span><span class="o">.</span><span class="fm">__init__</span><span class="p">(</span><span class="o">*</span><span class="n">args</span><span class="p">,</span> <span class="n">aspect</span><span class="o">=</span><span class="s2">&quot;equal&quot;</span><span class="p">,</span> <span class="o">**</span><span class="n">kwargs</span><span class="p">)</span>
<span class="c1"># rotate plot such that the first axis is at the top</span>
<span class="bp">self</span><span class="o">.</span><span class="n">set_theta_zero_location</span><span class="p">(</span><span class="s2">&quot;N&quot;</span><span class="p">)</span>
Expand Down
1 change: 0 additions & 1 deletion _modules/smefit/analyze/summary.html
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,6 @@ <h1>Source code for smefit.analyze.summary</h1><div class="highlight"><pre>
<span class="sd"> &quot;&quot;&quot;</span>

<span class="k">def</span> <span class="fm">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">fits</span><span class="p">,</span> <span class="n">data_groups</span><span class="p">,</span> <span class="n">coeff_config</span><span class="p">):</span>

<span class="bp">self</span><span class="o">.</span><span class="n">fits</span> <span class="o">=</span> <span class="n">fits</span>
<span class="bp">self</span><span class="o">.</span><span class="n">data_info</span> <span class="o">=</span> <span class="n">data_groups</span>
<span class="bp">self</span><span class="o">.</span><span class="n">coeff_info</span> <span class="o">=</span> <span class="n">coeff_config</span>
Expand Down
2 changes: 1 addition & 1 deletion _modules/smefit/basis_rotation.html
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ <h1>Source code for smefit.basis_rotation</h1><div class="highlight"><pre>
<span class="sd"> theory dictionary with quadratic operator corrections in the fit</span>
<span class="sd"> basis, emptry if quadratic corrections are not used</span>
<span class="sd"> &quot;&quot;&quot;</span>
<span class="k">with</span> <span class="nb">open</span><span class="p">(</span><span class="n">rotation_matrix_path</span><span class="p">,</span> <span class="s2">&quot;r&quot;</span><span class="p">,</span> <span class="n">encoding</span><span class="o">=</span><span class="s2">&quot;utf-8&quot;</span><span class="p">)</span> <span class="k">as</span> <span class="n">f</span><span class="p">:</span>
<span class="k">with</span> <span class="nb">open</span><span class="p">(</span><span class="n">rotation_matrix_path</span><span class="p">,</span> <span class="n">encoding</span><span class="o">=</span><span class="s2">&quot;utf-8&quot;</span><span class="p">)</span> <span class="k">as</span> <span class="n">f</span><span class="p">:</span>
<span class="n">rot</span> <span class="o">=</span> <span class="n">json</span><span class="o">.</span><span class="n">load</span><span class="p">(</span><span class="n">f</span><span class="p">)</span>
<span class="n">rotation_matrix</span> <span class="o">=</span> <span class="n">pd</span><span class="o">.</span><span class="n">DataFrame</span><span class="p">(</span>
<span class="n">data</span><span class="o">=</span><span class="n">rot</span><span class="p">[</span><span class="s2">&quot;matrix&quot;</span><span class="p">],</span> <span class="n">index</span><span class="o">=</span><span class="n">rot</span><span class="p">[</span><span class="s2">&quot;ypars&quot;</span><span class="p">],</span> <span class="n">columns</span><span class="o">=</span><span class="n">rot</span><span class="p">[</span><span class="s2">&quot;xpars&quot;</span><span class="p">]</span>
Expand Down
3 changes: 1 addition & 2 deletions _modules/smefit/chi2.html
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,11 @@ <h1>Source code for smefit.chi2</h1><div class="highlight"><pre>
<span class="sd">&quot;&quot;&quot;Module for the computation of chi-squared values.&quot;&quot;&quot;</span>
<span class="kn">import</span> <span class="nn">json</span>

<span class="kn">import</span> <span class="nn">jax.numpy</span> <span class="k">as</span> <span class="nn">jnp</span>
<span class="kn">import</span> <span class="nn">matplotlib.pyplot</span> <span class="k">as</span> <span class="nn">plt</span>
<span class="kn">import</span> <span class="nn">numpy</span> <span class="k">as</span> <span class="nn">np</span>
<span class="kn">import</span> <span class="nn">scipy.optimize</span> <span class="k">as</span> <span class="nn">opt</span>
<span class="kn">from</span> <span class="nn">rich.progress</span> <span class="kn">import</span> <span class="n">track</span>
<span class="kn">import</span> <span class="nn">jax.numpy</span> <span class="k">as</span> <span class="nn">jnp</span>

<span class="kn">from</span> <span class="nn">.</span> <span class="kn">import</span> <span class="n">compute_theory</span> <span class="k">as</span> <span class="n">pr</span>
<span class="kn">from</span> <span class="nn">.coefficients</span> <span class="kn">import</span> <span class="n">CoefficientManager</span>
Expand Down Expand Up @@ -192,7 +192,6 @@ <h1>Source code for smefit.chi2</h1><div class="highlight"><pre>
<span class="sd"> &quot;&quot;&quot;</span>

<span class="k">def</span> <span class="fm">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">run_card</span><span class="p">,</span> <span class="n">n_replica</span><span class="p">):</span>

<span class="bp">self</span><span class="o">.</span><span class="n">n_replica</span> <span class="o">=</span> <span class="n">n_replica</span>
<span class="bp">self</span><span class="o">.</span><span class="n">use_quad</span> <span class="o">=</span> <span class="n">run_card</span><span class="p">[</span><span class="s2">&quot;use_quad&quot;</span><span class="p">]</span>
<span class="bp">self</span><span class="o">.</span><span class="n">result_path</span> <span class="o">=</span> <span class="sa">f</span><span class="s2">&quot;</span><span class="si">{</span><span class="n">run_card</span><span class="p">[</span><span class="s1">&#39;result_path&#39;</span><span class="p">]</span><span class="si">}</span><span class="s2">/</span><span class="si">{</span><span class="n">run_card</span><span class="p">[</span><span class="s1">&#39;result_ID&#39;</span><span class="p">]</span><span class="si">}</span><span class="s2">&quot;</span>
Expand Down
3 changes: 0 additions & 3 deletions _modules/smefit/coefficients.html
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@

<h1>Source code for smefit.coefficients</h1><div class="highlight"><pre>
<span></span><span class="c1"># -*- coding: utf-8 -*-</span>

<span class="kn">import</span> <span class="nn">numpy</span> <span class="k">as</span> <span class="nn">np</span>
<span class="kn">import</span> <span class="nn">pandas</span> <span class="k">as</span> <span class="nn">pd</span>

Expand Down Expand Up @@ -361,7 +360,6 @@ <h1>Source code for smefit.coefficients</h1><div class="highlight"><pre>

<span class="c1"># loop pn fixed coefficients</span>
<span class="k">for</span> <span class="n">coefficient_fixed</span> <span class="ow">in</span> <span class="bp">self</span><span class="o">.</span><span class="n">_objlist</span><span class="p">[</span><span class="n">np</span><span class="o">.</span><span class="n">invert</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">is_free</span><span class="p">)]:</span>

<span class="c1"># skip coefficient fixed to a single value</span>
<span class="k">if</span> <span class="n">coefficient_fixed</span><span class="o">.</span><span class="n">constrain</span> <span class="ow">is</span> <span class="kc">None</span><span class="p">:</span>
<span class="k">continue</span>
Expand Down Expand Up @@ -391,7 +389,6 @@ <h1>Source code for smefit.coefficients</h1><div class="highlight"><pre>
<span class="sd"> rotation matrix from the original basis to the new_basis</span>
<span class="sd"> &quot;&quot;&quot;</span>
<span class="k">for</span> <span class="n">coefficient_fixed</span> <span class="ow">in</span> <span class="bp">self</span><span class="o">.</span><span class="n">_objlist</span><span class="p">[</span><span class="o">~</span><span class="bp">self</span><span class="o">.</span><span class="n">is_free</span><span class="p">]:</span>

<span class="c1"># skip coefficient fixed to a single value</span>
<span class="k">if</span> <span class="n">coefficient_fixed</span><span class="o">.</span><span class="n">constrain</span> <span class="ow">is</span> <span class="kc">None</span><span class="p">:</span>
<span class="k">continue</span>
Expand Down
3 changes: 1 addition & 2 deletions _modules/smefit/compute_theory.html
Original file line number Diff line number Diff line change
Expand Up @@ -115,12 +115,11 @@

<h1>Source code for smefit.compute_theory</h1><div class="highlight"><pre>
<span></span><span class="c1"># -*- coding: utf-8 -*-</span>

<span class="sd">&quot;&quot;&quot;</span>
<span class="sd">Module for the generation of theory predictions</span>
<span class="sd">&quot;&quot;&quot;</span>
<span class="kn">import</span> <span class="nn">numpy</span> <span class="k">as</span> <span class="nn">np</span>
<span class="kn">import</span> <span class="nn">jax.numpy</span> <span class="k">as</span> <span class="nn">jnp</span>
<span class="kn">import</span> <span class="nn">numpy</span> <span class="k">as</span> <span class="nn">np</span>


<div class="viewcode-block" id="flatten">
Expand Down
Loading

0 comments on commit f3943c5

Please sign in to comment.