Skip to content

Commit

Permalink
Deploy preview for PR 57 🛫
Browse files Browse the repository at this point in the history
  • Loading branch information
mjaehn committed Feb 2, 2024
1 parent 1f9372e commit 1bfb1f0
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 11 deletions.
Binary file modified pr-preview/pr-57/.doctrees/config.doctree
Binary file not shown.
Binary file modified pr-preview/pr-57/.doctrees/environment.pickle
Binary file not shown.
13 changes: 8 additions & 5 deletions pr-preview/pr-57/_sources/config.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -133,11 +133,14 @@ for the the ``cfg.meteo`` variable::
inc: 1

These config variables can be accessed via ``cfg.meteo['dir']``, ``cfg.meteo['prefix']``, etc.
as they are Python dictionaries. However, in :ref:`namelist and runscript template<namelists-section>` files
(see next section), this accessing does not work because of how the ``.format()`` method is implemented
in Python. For that reason, the Processing Chain automatically creates new variables in the form of
``cfg.meteo_dir``, ``cfg.meteo_prefix``, etc. at the start to make them available for namelist
and runjob templates.
as they are Python dictionaries.

.. hint::
In :ref:`namelist and runscript template<namelists-section>` files
(see next section), this accessing does not work because of how the ``.format()``
method is implemented in Python. For that reason, the Processing Chain automatically
creates new variables in the form of ``cfg.meteo_dir``, ``cfg.meteo_prefix``, etc.
at the start to make them accessible for namelist and runjob templates.

List of dictionary variables
****************************
Expand Down
14 changes: 9 additions & 5 deletions pr-preview/pr-57/config.html
Original file line number Diff line number Diff line change
Expand Up @@ -344,11 +344,15 @@ <h3>Further variables<a class="headerlink" href="#further-variables" title="Perm
</pre></div>
</div>
<p>These config variables can be accessed via <code class="docutils literal notranslate"><span class="pre">cfg.meteo['dir']</span></code>, <code class="docutils literal notranslate"><span class="pre">cfg.meteo['prefix']</span></code>, etc.
as they are Python dictionaries. However, in <a class="reference internal" href="namelists.html#namelists-section"><span class="std std-ref">namelist and runscript template</span></a> files
(see next section), this accessing does not work because of how the <code class="docutils literal notranslate"><span class="pre">.format()</span></code> method is implemented
in Python. For that reason, the Processing Chain automatically creates new variables in the form of
<code class="docutils literal notranslate"><span class="pre">cfg.meteo_dir</span></code>, <code class="docutils literal notranslate"><span class="pre">cfg.meteo_prefix</span></code>, etc. at the start to make them available for namelist
and runjob templates.</p>
as they are Python dictionaries.</p>
<div class="admonition hint">
<p class="admonition-title">Hint</p>
<p>In <a class="reference internal" href="namelists.html#namelists-section"><span class="std std-ref">namelist and runscript template</span></a> files
(see next section), this accessing does not work because of how the <code class="docutils literal notranslate"><span class="pre">.format()</span></code>
method is implemented in Python. For that reason, the Processing Chain automatically
creates new variables in the form of <code class="docutils literal notranslate"><span class="pre">cfg.meteo_dir</span></code>, <code class="docutils literal notranslate"><span class="pre">cfg.meteo_prefix</span></code>, etc.
at the start to make them accessible for namelist and runjob templates.</p>
</div>
<section id="list-of-dictionary-variables">
<h4>List of dictionary variables<a class="headerlink" href="#list-of-dictionary-variables" title="Permalink to this heading"></a></h4>
<p>The following is a list of dictionary variables that exist for the Processing Chain.
Expand Down
Loading

0 comments on commit 1bfb1f0

Please sign in to comment.