Skip to content

Commit 38c282d

Browse files
author
fmu-config-github-action
committed
Update Github Pages
1 parent 340eb38 commit 38c282d

14 files changed

Lines changed: 93 additions & 50 deletions

_sources/examples.rst.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,19 +59,19 @@ IPL example
5959
"""""""""""
6060
.. code-block:: text
6161
62-
Include("../input/global_variables/global_variables.ipl")
62+
Include("../../fmuconfig/output/global_variables.ipl")
6363
64-
FOR i FROM 1 TO TOP_LOBE.length DO
64+
FOR i FROM 1 TO TOP_LOBES.length DO
6565
Print("Reading ", TOP_LOBE[i])
6666
6767
68-
Python example
69-
""""""""""""""
68+
Python example (using yaml_load)
69+
""""""""""""""""""""""""""""""""
7070
.. code-block:: python
7171
7272
import fmu.config.utilities as utils
7373
74-
cfg = utils.yaml_load('../input/global_variables/global_variables_rms.yml')
74+
CFG = utils.yaml_load('../../fmuconfig/output/global_variables.yml')
7575
76-
for toplobe in cfg['horizons']['TOP_LOBE']:
76+
for toplobe in CFG["rms"]["horizons"]["TOP_LOBES"]:
7777
print('Working with {}'.format(toplobe))

_sources/index.rst.txt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,7 @@ Welcome to fmu-config's documentation!
1111
examples
1212
contributing
1313

14-
API
15-
===
1614

17-
.. toctree::
18-
19-
fmu.config/fmu.config
2015

2116
Indices and tables
2217
==================

_sources/usage.rst.txt

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,3 +105,30 @@ need to initiate the Class instance and run a few methods. Here is an example:
105105
if __name__ == "__main__":
106106
cleanup()
107107
main()
108+
109+
Using the output YAML in RMS or scripts
110+
---------------------------------------
111+
112+
.. code-block:: python
113+
114+
from fmu.config import utilities as util
115+
116+
CONFIG = "../../fmuconfig/output/global_variables.yml"
117+
118+
CFG = util.yaml_load(CONFIG)
119+
120+
121+
Loading the input YAML in RMS or scripts
122+
----------------------------------------
123+
124+
In some cases we may need to load the 'input' version of the YAML files which in fmu.config has
125+
a syntax (e.g. the ``!include`` keys) which makes it not compatible with the YAML standard.
126+
The solution then is to use a ``loader="FMU"`` key-value:
127+
128+
.. code-block:: python
129+
130+
from fmu.config import utilities as util
131+
132+
CONFIG = "../../fmuconfig/input/global_master_variables.yml"
133+
134+
CFG = util.yaml_load(CONFIG, loader="FMU")

_static/documentation_options.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const DOCUMENTATION_OPTIONS = {
2-
VERSION: '1.3.1.dev3+g73292c8',
2+
VERSION: '1.3.1.dev4+gdccab8a',
33
LANGUAGE: 'en',
44
COLLAPSE_INDEX: false,
55
BUILDER: 'html',

contributing.html

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@
66
<meta charset="utf-8" /><meta name="viewport" content="width=device-width, initial-scale=1" />
77

88
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
9-
<title>Contributing &mdash; fmu-config 1.3.1.dev3+g73292c8 documentation</title>
9+
<title>Contributing &mdash; fmu-config 1.3.1.dev4+gdccab8a documentation</title>
1010
<link rel="stylesheet" type="text/css" href="_static/pygments.css?v=03e43079" />
1111
<link rel="stylesheet" type="text/css" href="_static/css/theme.css?v=e59714d7" />
1212

1313

1414
<script src="_static/jquery.js?v=5d32c60e"></script>
1515
<script src="_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
16-
<script src="_static/documentation_options.js?v=cd9e2648"></script>
16+
<script src="_static/documentation_options.js?v=46fa796f"></script>
1717
<script src="_static/doctools.js?v=9bcbadda"></script>
1818
<script src="_static/sphinx_highlight.js?v=dc90522c"></script>
1919
<script src="_static/js/theme.js"></script>
@@ -57,11 +57,11 @@
5757
</ul>
5858
</li>
5959
<li class="toctree-l2"><a class="reference internal" href="#code-standards">Code standards</a><ul>
60-
<li class="toctree-l3"><a class="reference internal" href="#in-addition">In addition:</a></li>
60+
<li class="toctree-l3"><a class="reference internal" href="#in-addition">In addition</a></li>
6161
<li class="toctree-l3"><a class="reference internal" href="#linting">Linting</a></li>
6262
</ul>
6363
</li>
64-
<li class="toctree-l2"><a class="reference internal" href="#get-started">Get Started!</a></li>
64+
<li class="toctree-l2"><a class="reference internal" href="#get-started">Get Started</a></li>
6565
</ul>
6666
</li>
6767
</ul>
@@ -99,7 +99,7 @@ <h1>Contributing<a class="headerlink" href="#contributing" title="Link to this h
9999
<h2>Types of Contributions<a class="headerlink" href="#types-of-contributions" title="Link to this heading"></a></h2>
100100
<section id="report-bugs">
101101
<h3>Report Bugs<a class="headerlink" href="#report-bugs" title="Link to this heading"></a></h3>
102-
<p>Report issues and bugs at https://github.com/equinor/fmu-config/issues</p>
102+
<p>Report issues and bugs at <a class="reference external" href="https://github.com/equinor/fmu-config/issues">fmu-config/issues</a></p>
103103
<p>If you are reporting a bug, please include:</p>
104104
<ul class="simple">
105105
<li><p>Your operating system name and version.</p></li>
@@ -125,8 +125,7 @@ <h3>Write Documentation<a class="headerlink" href="#write-documentation" title="
125125
</section>
126126
<section id="submit-feedback">
127127
<h3>Submit Feedback<a class="headerlink" href="#submit-feedback" title="Link to this heading"></a></h3>
128-
<p>The best way to send feedback is to file an issue
129-
at https://github.com/equinor/fmu-config/issues.</p>
128+
<p>The best way to send feedback is to file an issue at <a class="reference external" href="https://github.com/equinor/fmu-config/issues">fmu-config/issues</a></p>
130129
<p>If you are proposing a feature:</p>
131130
<ul class="simple">
132131
<li><p>Explain in detail how it would work.</p></li>
@@ -142,7 +141,7 @@ <h2>Code standards<a class="headerlink" href="#code-standards" title="Link to th
142141
<a class="reference external" href="https://pypi.org/project/ruff/">ruff</a>,
143142
<a class="reference external" href="https://mypy.readthedocs.io/en/stable/">mypy</a> to format and lint all code.</p>
144143
<section id="in-addition">
145-
<h3>In addition:<a class="headerlink" href="#in-addition" title="Link to this heading"></a></h3>
144+
<h3>In addition<a class="headerlink" href="#in-addition" title="Link to this heading"></a></h3>
146145
<ul class="simple">
147146
<li><p>Start with documentation and tests. Think and communicate first!</p></li>
148147
<li><p>Docstrings shall start and end with “”” and use Google style.</p></li>
@@ -162,7 +161,7 @@ <h3>Linting<a class="headerlink" href="#linting" title="Link to this heading">
162161
</section>
163162
</section>
164163
<section id="get-started">
165-
<h2>Get Started!<a class="headerlink" href="#get-started" title="Link to this heading"></a></h2>
164+
<h2>Get Started<a class="headerlink" href="#get-started" title="Link to this heading"></a></h2>
166165
<p>Ready to contribute? Here’s how to set up <code class="docutils literal notranslate"><span class="pre">fmu-config</span></code> for local development.</p>
167166
<ol class="arabic">
168167
<li><p>Fork the <code class="docutils literal notranslate"><span class="pre">fmu-config</span></code> repo in web browser to a personal fork</p></li>

examples.html

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@
66
<meta charset="utf-8" /><meta name="viewport" content="width=device-width, initial-scale=1" />
77

88
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
9-
<title>Examples to learn from &mdash; fmu-config 1.3.1.dev3+g73292c8 documentation</title>
9+
<title>Examples to learn from &mdash; fmu-config 1.3.1.dev4+gdccab8a documentation</title>
1010
<link rel="stylesheet" type="text/css" href="_static/pygments.css?v=03e43079" />
1111
<link rel="stylesheet" type="text/css" href="_static/css/theme.css?v=e59714d7" />
1212

1313

1414
<script src="_static/jquery.js?v=5d32c60e"></script>
1515
<script src="_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
16-
<script src="_static/documentation_options.js?v=cd9e2648"></script>
16+
<script src="_static/documentation_options.js?v=46fa796f"></script>
1717
<script src="_static/doctools.js?v=9bcbadda"></script>
1818
<script src="_static/sphinx_highlight.js?v=dc90522c"></script>
1919
<script src="_static/js/theme.js"></script>
@@ -56,7 +56,7 @@
5656
<li class="toctree-l2"><a class="reference internal" href="#vinstre-example-config">Vinstre example config</a></li>
5757
<li class="toctree-l2"><a class="reference internal" href="#using-the-config-in-rms-ipl-and-python">Using the config in RMS, IPL and Python</a><ul>
5858
<li class="toctree-l3"><a class="reference internal" href="#ipl-example">IPL example</a></li>
59-
<li class="toctree-l3"><a class="reference internal" href="#python-example">Python example</a></li>
59+
<li class="toctree-l3"><a class="reference internal" href="#python-example-using-yaml-load">Python example (using yaml_load)</a></li>
6060
</ul>
6161
</li>
6262
</ul>
@@ -543,20 +543,20 @@ <h2>Vinstre example config<a class="headerlink" href="#vinstre-example-config" t
543543
<h2>Using the config in RMS, IPL and Python<a class="headerlink" href="#using-the-config-in-rms-ipl-and-python" title="Link to this heading"></a></h2>
544544
<section id="ipl-example">
545545
<h3>IPL example<a class="headerlink" href="#ipl-example" title="Link to this heading"></a></h3>
546-
<div class="highlight-text notranslate"><div class="highlight"><pre><span></span>Include(&quot;../input/global_variables/global_variables.ipl&quot;)
546+
<div class="highlight-text notranslate"><div class="highlight"><pre><span></span>Include(&quot;../../fmuconfig/output/global_variables.ipl&quot;)
547547

548-
FOR i FROM 1 TO TOP_LOBE.length DO
548+
FOR i FROM 1 TO TOP_LOBES.length DO
549549
Print(&quot;Reading &quot;, TOP_LOBE[i])
550550
</pre></div>
551551
</div>
552552
</section>
553-
<section id="python-example">
554-
<h3>Python example<a class="headerlink" href="#python-example" title="Link to this heading"></a></h3>
553+
<section id="python-example-using-yaml-load">
554+
<h3>Python example (using yaml_load)<a class="headerlink" href="#python-example-using-yaml-load" title="Link to this heading"></a></h3>
555555
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="kn">import</span><span class="w"> </span><span class="nn">fmu.config.utilities</span><span class="w"> </span><span class="k">as</span><span class="w"> </span><span class="nn">utils</span>
556556

557-
<span class="n">cfg</span> <span class="o">=</span> <span class="n">utils</span><span class="o">.</span><span class="n">yaml_load</span><span class="p">(</span><span class="s1">&#39;../input/global_variables/global_variables_rms.yml&#39;</span><span class="p">)</span>
557+
<span class="n">CFG</span> <span class="o">=</span> <span class="n">utils</span><span class="o">.</span><span class="n">yaml_load</span><span class="p">(</span><span class="s1">&#39;../../fmuconfig/output/global_variables.yml&#39;</span><span class="p">)</span>
558558

559-
<span class="k">for</span> <span class="n">toplobe</span> <span class="ow">in</span> <span class="n">cfg</span><span class="p">[</span><span class="s1">&#39;horizons&#39;</span><span class="p">][</span><span class="s1">&#39;TOP_LOBE&#39;</span><span class="p">]:</span>
559+
<span class="k">for</span> <span class="n">toplobe</span> <span class="ow">in</span> <span class="n">CFG</span><span class="p">[</span><span class="s2">&quot;rms&quot;</span><span class="p">][</span><span class="s2">&quot;horizons&quot;</span><span class="p">][</span><span class="s2">&quot;TOP_LOBES&quot;</span><span class="p">]:</span>
560560
<span class="nb">print</span><span class="p">(</span><span class="s1">&#39;Working with </span><span class="si">{}</span><span class="s1">&#39;</span><span class="o">.</span><span class="n">format</span><span class="p">(</span><span class="n">toplobe</span><span class="p">))</span>
561561
</pre></div>
562562
</div>

genindex.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55
<head>
66
<meta charset="utf-8" />
77
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
8-
<title>Index &mdash; fmu-config 1.3.1.dev3+g73292c8 documentation</title>
8+
<title>Index &mdash; fmu-config 1.3.1.dev4+gdccab8a documentation</title>
99
<link rel="stylesheet" type="text/css" href="_static/pygments.css?v=03e43079" />
1010
<link rel="stylesheet" type="text/css" href="_static/css/theme.css?v=e59714d7" />
1111

1212

1313
<script src="_static/jquery.js?v=5d32c60e"></script>
1414
<script src="_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
15-
<script src="_static/documentation_options.js?v=cd9e2648"></script>
15+
<script src="_static/documentation_options.js?v=46fa796f"></script>
1616
<script src="_static/doctools.js?v=9bcbadda"></script>
1717
<script src="_static/sphinx_highlight.js?v=dc90522c"></script>
1818
<script src="_static/js/theme.js"></script>

index.html

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@
66
<meta charset="utf-8" /><meta name="viewport" content="width=device-width, initial-scale=1" />
77

88
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
9-
<title>Welcome to fmu-config’s documentation! &mdash; fmu-config 1.3.1.dev3+g73292c8 documentation</title>
9+
<title>Welcome to fmu-config’s documentation! &mdash; fmu-config 1.3.1.dev4+gdccab8a documentation</title>
1010
<link rel="stylesheet" type="text/css" href="_static/pygments.css?v=03e43079" />
1111
<link rel="stylesheet" type="text/css" href="_static/css/theme.css?v=e59714d7" />
1212

1313

1414
<script src="_static/jquery.js?v=5d32c60e"></script>
1515
<script src="_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
16-
<script src="_static/documentation_options.js?v=cd9e2648"></script>
16+
<script src="_static/documentation_options.js?v=46fa796f"></script>
1717
<script src="_static/doctools.js?v=9bcbadda"></script>
1818
<script src="_static/sphinx_highlight.js?v=dc90522c"></script>
1919
<script src="_static/js/theme.js"></script>
@@ -96,6 +96,8 @@ <h1>Welcome to fmu-config’s documentation!<a class="headerlink" href="#welcome
9696
<li class="toctree-l2"><a class="reference internal" href="usage.html#folder-structure">Folder structure</a></li>
9797
<li class="toctree-l2"><a class="reference internal" href="usage.html#run-from-script">Run from script</a></li>
9898
<li class="toctree-l2"><a class="reference internal" href="usage.html#run-from-python-inside-or-outside-rms">Run from python inside or outside RMS</a></li>
99+
<li class="toctree-l2"><a class="reference internal" href="usage.html#using-the-output-yaml-in-rms-or-scripts">Using the output YAML in RMS or scripts</a></li>
100+
<li class="toctree-l2"><a class="reference internal" href="usage.html#loading-the-input-yaml-in-rms-or-scripts">Loading the input YAML in RMS or scripts</a></li>
99101
</ul>
100102
</li>
101103
<li class="toctree-l1"><a class="reference internal" href="examples.html">Examples to learn from</a><ul>
@@ -107,17 +109,12 @@ <h1>Welcome to fmu-config’s documentation!<a class="headerlink" href="#welcome
107109
<li class="toctree-l1"><a class="reference internal" href="contributing.html">Contributing</a><ul>
108110
<li class="toctree-l2"><a class="reference internal" href="contributing.html#types-of-contributions">Types of Contributions</a></li>
109111
<li class="toctree-l2"><a class="reference internal" href="contributing.html#code-standards">Code standards</a></li>
110-
<li class="toctree-l2"><a class="reference internal" href="contributing.html#get-started">Get Started!</a></li>
112+
<li class="toctree-l2"><a class="reference internal" href="contributing.html#get-started">Get Started</a></li>
111113
</ul>
112114
</li>
113115
</ul>
114116
</div>
115117
</section>
116-
<section id="api">
117-
<h1>API<a class="headerlink" href="#api" title="Link to this heading"></a></h1>
118-
<div class="toctree-wrapper compound">
119-
</div>
120-
</section>
121118
<section id="indices-and-tables">
122119
<h1>Indices and tables<a class="headerlink" href="#indices-and-tables" title="Link to this heading"></a></h1>
123120
<ul class="simple">

installation.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@
66
<meta charset="utf-8" /><meta name="viewport" content="width=device-width, initial-scale=1" />
77

88
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
9-
<title>Installation &mdash; fmu-config 1.3.1.dev3+g73292c8 documentation</title>
9+
<title>Installation &mdash; fmu-config 1.3.1.dev4+gdccab8a documentation</title>
1010
<link rel="stylesheet" type="text/css" href="_static/pygments.css?v=03e43079" />
1111
<link rel="stylesheet" type="text/css" href="_static/css/theme.css?v=e59714d7" />
1212

1313

1414
<script src="_static/jquery.js?v=5d32c60e"></script>
1515
<script src="_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
16-
<script src="_static/documentation_options.js?v=cd9e2648"></script>
16+
<script src="_static/documentation_options.js?v=46fa796f"></script>
1717
<script src="_static/doctools.js?v=9bcbadda"></script>
1818
<script src="_static/sphinx_highlight.js?v=dc90522c"></script>
1919
<script src="_static/js/theme.js"></script>

objects.inv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Sphinx inventory version 2
22
# Project: fmu-config
3-
# Version: 1.3.1.dev3+g73292c8
3+
# Version: 1.3.1.dev4+gdccab8a
44
# The remainder of this file is compressed using zlib.
55
xڅ�Aj!E�����fB� ��t��Jk�2L�r�\/'��Ӵ�lD�W~KM��;eva��ͽ!-�;�;�vb��S\�?#�Y�fZLA� m$/F.�, �`EW���u+6۵�x����>%�u���w�ś=V�(ܔ&��r������M��)��s ��y��?�q���ѩ�HO{�i�ym��A�T��5��|ou+f��R�{ۦ6����EZW2�`�%4S���2�2�$~)�Y

0 commit comments

Comments
 (0)