Skip to content

Commit

Permalink
Built site for gh-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
Quarto GHA Workflow Runner committed Sep 14, 2023
1 parent 14a54db commit 419cd68
Show file tree
Hide file tree
Showing 43 changed files with 945 additions and 227 deletions.
2 changes: 1 addition & 1 deletion .nojekyll
Original file line number Diff line number Diff line change
@@ -1 +1 @@
70a47584
a8c574a9
162 changes: 81 additions & 81 deletions build/index.html

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions contribute/addnode.html
Original file line number Diff line number Diff line change
Expand Up @@ -452,8 +452,9 @@ <h1 data-number="7"><span class="header-section-number">7</span> Finishing up</h
<p>If you haven’t done so before, you first need to instantiate your docs environment. Run <code>julia --project=docs</code>, followed by running <code>instantiate</code> in the Pkg mode (press <code>]</code>).</p>
</div>
</div>
<p>To generate the Python module <code>models.py</code> from the JSON Schemas, run:</p>
<pre><code>datamodel-codegen --use-title-as-name --input docs/schema/root.schema.json --output python/ribasim/ribasim/models.py</code></pre>
<p>To generate the Python module <code>models.py</code> and <code>config.py</code> from the JSON Schemas, run:</p>
<pre><code>datamodel-codegen --use-title-as-name --use-double-quotes --disable-timestamp --use-default --strict-nullable --input docs/schema/root.schema.json --output python/ribasim/ribasim/models.py
datamodel-codegen --use-title-as-name --use-double-quotes --disable-timestamp --use-default --strict-nullable --input docs/schema/Config.schema.json --output python/ribasim/ribasim/config.py</code></pre>
<p>Since adding a node type touches both the Python and Julia code, it is a good idea to run both the <a href="../contribute/python.html#test">Python test suite</a> and <a href="../contribute/core.html#test">Julia test suite</a> locally before creating a pull request.</p>


Expand Down
2 changes: 1 addition & 1 deletion python/examples.html
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@ <h1 data-number="2"><span class="header-section-number">2</span> Update the basi
<span id="cb26-4"><a href="#cb26-4" aria-hidden="true" tabindex="-1"></a>ax <span class="op">=</span> df_flow.pivot_table(index<span class="op">=</span><span class="st">"time"</span>, columns<span class="op">=</span><span class="st">"edge"</span>, values<span class="op">=</span><span class="st">"flow_m3d"</span>).plot()</span>
<span id="cb26-5"><a href="#cb26-5" aria-hidden="true" tabindex="-1"></a>ax.legend(bbox_to_anchor<span class="op">=</span>(<span class="fl">1.3</span>, <span class="dv">1</span>), title<span class="op">=</span><span class="st">"Edge"</span>)</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="cell-output cell-output-display" data-execution_count="26">
<pre><code>&lt;matplotlib.legend.Legend at 0x7f35e2e9a550&gt;</code></pre>
<pre><code>&lt;matplotlib.legend.Legend at 0x7f14799f5c10&gt;</code></pre>
</div>
<div class="cell-output cell-output-display">
<p><img src="examples_files/figure-html/cell-27-output-2.png" width="727" height="412"></p>
Expand Down
7 changes: 0 additions & 7 deletions schema/BasinForcing.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,37 +9,30 @@
},
"time": {
"format": "date-time",
"description": "time",
"type": "string"
},
"precipitation": {
"format": "double",
"description": "precipitation",
"type": "number"
},
"infiltration": {
"format": "double",
"description": "infiltration",
"type": "number"
},
"urban_runoff": {
"format": "double",
"description": "urban_runoff",
"type": "number"
},
"node_id": {
"format": "default",
"description": "node_id",
"type": "integer"
},
"potential_evaporation": {
"format": "double",
"description": "potential_evaporation",
"type": "number"
},
"drainage": {
"format": "double",
"description": "drainage",
"type": "number"
}
},
Expand Down
3 changes: 0 additions & 3 deletions schema/BasinProfile.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,14 @@
},
"area": {
"format": "double",
"description": "area",
"type": "number"
},
"node_id": {
"format": "default",
"description": "node_id",
"type": "integer"
},
"level": {
"format": "double",
"description": "level",
"type": "number"
}
},
Expand Down
2 changes: 0 additions & 2 deletions schema/BasinState.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,10 @@
},
"node_id": {
"format": "default",
"description": "node_id",
"type": "integer"
},
"level": {
"format": "double",
"description": "level",
"type": "number"
}
},
Expand Down
6 changes: 0 additions & 6 deletions schema/BasinStatic.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,32 +9,26 @@
},
"precipitation": {
"format": "double",
"description": "precipitation",
"type": "number"
},
"infiltration": {
"format": "double",
"description": "infiltration",
"type": "number"
},
"urban_runoff": {
"format": "double",
"description": "urban_runoff",
"type": "number"
},
"node_id": {
"format": "default",
"description": "node_id",
"type": "integer"
},
"potential_evaporation": {
"format": "double",
"description": "potential_evaporation",
"type": "number"
},
"drainage": {
"format": "double",
"description": "drainage",
"type": "number"
}
},
Expand Down
180 changes: 180 additions & 0 deletions schema/Config.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,180 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"output": {
"default": {
"basin": "output/basin.arrow",
"flow": "output/flow.arrow",
"control": "output/control.arrow",
"outstate": null,
"compression": "zstd",
"compression_level": 6
},
"$ref": "https://deltares.github.io/Ribasim/schema/Output.schema.json"
},
"starttime": {
"format": "date-time",
"type": "string"
},
"update_timestep": {
"format": "double",
"default": 86400,
"type": "number"
},
"input_dir": {
"format": "default",
"default": ".",
"type": "string"
},
"output_dir": {
"format": "default",
"default": ".",
"type": "string"
},
"level_boundary": {
"default": {
"static": null,
"time": null
},
"$ref": "https://deltares.github.io/Ribasim/schema/level_boundary.schema.json"
},
"pump": {
"default": {
"static": null
},
"$ref": "https://deltares.github.io/Ribasim/schema/pump.schema.json"
},
"discrete_control": {
"default": {
"condition": null,
"logic": null
},
"$ref": "https://deltares.github.io/Ribasim/schema/discrete_control.schema.json"
},
"solver": {
"default": {
"algorithm": "QNDF",
"saveat": [
],
"adaptive": true,
"dt": 0,
"abstol": 1.0e-6,
"reltol": 0.001,
"maxiters": 1000000000,
"sparse": true,
"autodiff": true
},
"$ref": "https://deltares.github.io/Ribasim/schema/Solver.schema.json"
},
"flow_boundary": {
"default": {
"static": null,
"time": null
},
"$ref": "https://deltares.github.io/Ribasim/schema/flow_boundary.schema.json"
},
"pid_control": {
"default": {
"static": null,
"time": null
},
"$ref": "https://deltares.github.io/Ribasim/schema/pid_control.schema.json"
},
"fractional_flow": {
"default": {
"static": null
},
"$ref": "https://deltares.github.io/Ribasim/schema/fractional_flow.schema.json"
},
"relative_dir": {
"format": "default",
"default": ".",
"type": "string"
},
"endtime": {
"format": "date-time",
"type": "string"
},
"manning_resistance": {
"default": {
"static": null
},
"$ref": "https://deltares.github.io/Ribasim/schema/manning_resistance.schema.json"
},
"tabulated_rating_curve": {
"default": {
"static": null,
"time": null
},
"$ref": "https://deltares.github.io/Ribasim/schema/tabulated_rating_curve.schema.json"
},
"logging": {
"default": {
"verbosity": {
"level": 0
},
"timing": false
},
"$ref": "https://deltares.github.io/Ribasim/schema/Logging.schema.json"
},
"outlet": {
"default": {
"static": null
},
"$ref": "https://deltares.github.io/Ribasim/schema/outlet.schema.json"
},
"geopackage": {
"format": "default",
"type": "string"
},
"terminal": {
"default": {
"static": null
},
"$ref": "https://deltares.github.io/Ribasim/schema/terminal.schema.json"
},
"basin": {
"default": {
"forcing": null,
"profile": null,
"state": null,
"static": null
},
"$ref": "https://deltares.github.io/Ribasim/schema/basin.schema.json"
},
"linear_resistance": {
"default": {
"static": null
},
"$ref": "https://deltares.github.io/Ribasim/schema/linear_resistance.schema.json"
}
},
"required": [
"starttime",
"endtime",
"update_timestep",
"relative_dir",
"input_dir",
"output_dir",
"geopackage",
"output",
"solver",
"logging",
"terminal",
"pid_control",
"level_boundary",
"pump",
"tabulated_rating_curve",
"flow_boundary",
"basin",
"manning_resistance",
"discrete_control",
"outlet",
"linear_resistance",
"fractional_flow"
],
"$id": "https://deltares.github.io/Ribasim/schema/Config.schema.json",
"title": "Config",
"description": "A Config object based on Ribasim.config.Config",
"type": "object"
}
14 changes: 7 additions & 7 deletions schema/DiscreteControlCondition.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,29 +9,29 @@
},
"greater_than": {
"format": "double",
"description": "greater_than",
"type": "number"
},
"listen_feature_id": {
"format": "default",
"description": "listen_feature_id",
"type": "integer"
},
"node_id": {
"format": "default",
"description": "node_id",
"type": "integer"
},
"variable": {
"format": "default",
"description": "variable",
"type": "string"
},
"look_ahead": {
"format": "default",
"description": "look_ahead",
"type": [
"number"
"anyOf": [
{
"type": "null"
},
{
"type": "number"
}
]
}
},
Expand Down
3 changes: 0 additions & 3 deletions schema/DiscreteControlLogic.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,14 @@
},
"truth_state": {
"format": "default",
"description": "truth_state",
"type": "string"
},
"node_id": {
"format": "default",
"description": "node_id",
"type": "integer"
},
"control_state": {
"format": "default",
"description": "control_state",
"type": "string"
}
},
Expand Down
4 changes: 0 additions & 4 deletions schema/Edge.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,18 @@
},
"edge_type": {
"format": "default",
"description": "edge_type",
"type": "string"
},
"fid": {
"format": "default",
"description": "fid",
"type": "integer"
},
"to_node_id": {
"format": "default",
"description": "to_node_id",
"type": "integer"
},
"from_node_id": {
"format": "default",
"description": "from_node_id",
"type": "integer"
}
},
Expand Down
Loading

0 comments on commit 419cd68

Please sign in to comment.