generated from eWaterCycle/ewatercycle-leakybucket
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20 from Daafip/dev
Add beginning of docs
- Loading branch information
Showing
8 changed files
with
764 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Minimal makefile for Sphinx documentation | ||
# | ||
|
||
# You can set these variables from the command line, and also | ||
# from the environment for the first two. | ||
SPHINXOPTS ?= | ||
SPHINXBUILD ?= sphinx-build | ||
SOURCEDIR = source | ||
BUILDDIR = build | ||
|
||
# Put it first so that "make" without argument is like "make help". | ||
help: | ||
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) | ||
|
||
.PHONY: help Makefile | ||
|
||
# Catch-all target: route all unknown targets to Sphinx using the new | ||
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS). | ||
%: Makefile | ||
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
@ECHO OFF | ||
|
||
pushd %~dp0 | ||
|
||
REM Command file for Sphinx documentation | ||
|
||
if "%SPHINXBUILD%" == "" ( | ||
set SPHINXBUILD=sphinx-build | ||
) | ||
set SOURCEDIR=source | ||
set BUILDDIR=build | ||
|
||
%SPHINXBUILD% >NUL 2>NUL | ||
if errorlevel 9009 ( | ||
echo. | ||
echo.The 'sphinx-build' command was not found. Make sure you have Sphinx | ||
echo.installed, then set the SPHINXBUILD environment variable to point | ||
echo.to the full path of the 'sphinx-build' executable. Alternatively you | ||
echo.may add the Sphinx directory to PATH. | ||
echo. | ||
echo.If you don't have Sphinx installed, grab it from | ||
echo.https://www.sphinx-doc.org/ | ||
exit /b 1 | ||
) | ||
|
||
if "%1" == "" goto help | ||
|
||
%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O% | ||
goto end | ||
|
||
:help | ||
%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O% | ||
|
||
:end | ||
popd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
eWaterCycle plugin - HBV | ||
======================== | ||
|
||
|PyPI| |github license badge| |fair-software badge| |Quality Gate | ||
Status| | ||
|
||
This package is based on the `Leaky | ||
bucket <https://github.com/eWaterCycle/ewatercycle-leakybucket/tree/main>`__ | ||
& is a wrapper for the `HBV-bmi <https://github.com/Daafip/HBV-bmi>`__ | ||
model. | ||
|
||
HBV (Hydrologiska Byråns Vattenbalansavdelning) is a conceptual | ||
hydrological model. For more information on it’s history, see this | ||
`paper <https://hess.copernicus.org/articles/26/1371/2022/>`__. | ||
|
||
This current implementation is *without* a snow reservoir. | ||
|
||
Installation | ||
------------ | ||
|
||
Install this package alongside your eWaterCycle installation | ||
|
||
.. code:: console | ||
pip install ewatercycle-hbv | ||
Then HBV becomes available as one of the eWaterCycle models | ||
|
||
.. code:: python | ||
from ewatercycle.models import HBV | ||
Implementing your own model | ||
--------------------------- | ||
|
||
For more information on how this plugin works, and on how to implement | ||
your own model see the `plugin | ||
guide <https://github.com/eWaterCycle/ewatercycle-leakybucket/blob/main/plugin_guide.md>`__ | ||
|
||
Changelog | ||
--------- | ||
|
||
Changes can be found in | ||
`CHANGELOG.md <https://github.com/Daafip/ewatercycle-hbv/blob/main/CHANGELOG.md>`__ | ||
on GitHub | ||
|
||
License | ||
------- | ||
|
||
This is a ``ewatercycle-plugin`` & thus this is distributed under the | ||
same terms as the template: the | ||
`Apache-2.0 <https://spdx.org/licenses/Apache-2.0.html>`__ license. | ||
|
||
.. |PyPI| image:: https://img.shields.io/pypi/v/ewatercycle-HBV | ||
:target: https://pypi.org/project/ewatercycle-HBV/ | ||
.. |github license badge| image:: https://img.shields.io/github/license/Daafip/ewatercycle-hbv | ||
:target: https://github.com/Daafip/ewatercycle-hbv | ||
.. |fair-software badge| image:: https://img.shields.io/badge/fair--software.eu-%E2%97%8F%20%20%E2%97%8F%20%20%E2%97%8B%20%20%E2%97%8B%20%20%E2%97%8B-yellow | ||
:target: https://fair-software.eu | ||
.. |Quality Gate Status| image:: https://sonarcloud.io/api/project_badges/measure?project=Daafip_ewatercycle-hbv&metric=alert_status | ||
:target: https://sonarcloud.io/summary/new_code?id=Daafip_ewatercycle-hbv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# Configuration file for the Sphinx documentation builder. | ||
# | ||
# For the full list of built-in configuration values, see the documentation: | ||
# https://www.sphinx-doc.org/en/master/usage/configuration.html | ||
|
||
# -- Project information ----------------------------------------------------- | ||
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information | ||
|
||
project = 'eWaterCycle-HBV' | ||
copyright = '2024, David Haasnoot' | ||
author = 'David Haasnoot' | ||
release = '\x1b[A\x1b[F\x1b[B\x1b[B\x1b[F\x1b[B\x1b[B' | ||
|
||
# -- General configuration --------------------------------------------------- | ||
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration | ||
|
||
extensions = [ | ||
'sphinx.ext.autodoc', | ||
"nbsphinx", | ||
] | ||
|
||
templates_path = ['_templates'] | ||
exclude_patterns = [] | ||
|
||
source_suffix = [".rst"] | ||
|
||
|
||
# -- Options for HTML output ------------------------------------------------- | ||
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output | ||
|
||
html_theme = 'alabaster' | ||
html_static_path = ['_static'] | ||
|
||
|
||
# -- Use autoapi.extension to run sphinx-apidoc ------- | ||
autoapi_dirs = ["../../src"] | ||
autoapi_python_class_content = "both" | ||
autoapi_options = ["members", "undoc-members", "imported-members", "show-inheritance"] |
Oops, something went wrong.