Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into DD-groundwater_sign
Browse files Browse the repository at this point in the history
  • Loading branch information
davyd committed May 2, 2024
2 parents d9a41fc + 14e8980 commit 9c2ce1b
Show file tree
Hide file tree
Showing 12 changed files with 45 additions and 21 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
name: Build and Deploy documentation
on:
push:
branches: [master, repair_docs]
branches: [master]
workflow_dispatch:
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2.3.1
uses: actions/checkout@v4

- name: get build deps
run: |
Expand Down
13 changes: 12 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
fail-fast: [true]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: build package
run: |
sudo apt-get -y install libgdal-dev gdal-bin pandoc
Expand All @@ -32,3 +32,14 @@ jobs:
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}

- name: Get documentation dependencies
run: |
sudo apt install pandoc
pip install -r doc-requirements.txt
- name: Check if documentation builds succesfully
run: |
pip install .
cd docs
make html
8 changes: 4 additions & 4 deletions .github/workflows/tests-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ jobs:
windows-conda-tests:
runs-on: "windows-latest"
steps:
- uses: conda-incubator/setup-miniconda@v2
- uses: conda-incubator/setup-miniconda@v3
with:
miniconda-version: "latest"
environment-file:
- name: Checkout
uses: actions/checkout@v2.3.1
uses: actions/checkout@v4
- name: PowerShell
shell: powershell
run: |
Expand All @@ -40,9 +40,9 @@ jobs:
fail-fast: [false]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -111,3 +111,6 @@ docs/_build
tests/_*
docs/_*
result_images/*

# package specific content
tests/result_images/*
2 changes: 1 addition & 1 deletion dev-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
pytest>=4.6 # bumped for compatibility with latest pytest-cov
pytest-cov
wheel
matplotlib
tox
12 changes: 6 additions & 6 deletions doc-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
Sphinx==4.3.2
Sphinx
nbsphinx
jupyter_client
ipykernel
sphinx_rtd_theme==1.0.0
sphinx_rtd_theme
matplotlib
Pygments==2.11.2
click==8.0.3
pandoc==2.0.1
Jinja2==3.0.3
Pygments
click
pandoc
Jinja2
5 changes: 4 additions & 1 deletion docs/invoer.rst
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,10 @@ Hieronder wordt voor elk van de mogelijke invoerrasters een omschrijving gegeven
Onderstaande figuur geeft de verschillende invoerrasters weer, thematisch geordend (verticaal) en ingedeeld naar hun indirecte (via zuur- en trofiegraad) en directe invloed op de potenties voor de verschillende vegetatietypen (horizontaal).

.. figure:: _static/svg/input_rasters.svg
:scale: 100%
:scale: 100%
:width: 960px
:height: 720px
:alt: Overview of the required raster inputs for the Niche-Vlaanderen model.

.. _soil_code:

Expand Down
5 changes: 4 additions & 1 deletion docs/notendop.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@ Onderstaande figuur tracht de werking van zowel het NICHE Vlaanderen model als d
De hyperlinks in de figuur verwijzen je door naar de documentatie bij het betreffende item.

.. figure:: _static/svg/NICHE_summary_extended.svg
:scale: 100%
:scale: 100%
:width: 1092px
:height: 935px
:alt: Functional overview of the Niche-Vlaanderen model and post-flooding module.

Doel van deze website
=====================
Expand Down
5 changes: 3 additions & 2 deletions docs/running.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ and activate the environment (in this example, an environment you called `niche`
Optionally - Jupyter Notebook
=============================

If you want to run niche_vlaanderen interactively, we recommend using a [jupyter notebook](http://jupyter.org/).
To run this, from the `Anaconda/Miniconda prompt` do:
If you want to run niche_vlaanderen interactively, we recommend using a `Jupyter notebook <http://jupyter.org/>`_.

To use Jupyter Notebooks, from the `Anaconda/Miniconda prompt` do:

.. code-block:: default
Expand Down
4 changes: 2 additions & 2 deletions docs/vegetatie_reftabel.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ Opbouw referentietabel

De referentietabel van NICHE Vlaanderen kan je `hier <https://github.com/inbo/niche_vlaanderen/blob/master/niche_vlaanderen/system_tables/niche_vegetation.csv>`_ raadplegen. Ze bevat de standplaatsvereisten voor elk vegetatietype, vertaald naar 7 verschillende standplaatsfactoren. De links in onderstaand lijstje verwijzen door naar meer informatie bij de standplaatsfactoren en de aard van de gegevens.

- :doc:`Cijfercode NICHE vegetatietype <vegetatietype.rst>`
- :doc:`Wetenschappelijke naam NICHE vegetatietype <vegetatietype.rst>`
- :doc:`Cijfercode NICHE vegetatietype <vegetatietype>`
- :doc:`Wetenschappelijke naam NICHE vegetatietype <vegetatietype>`
- :ref:`Bodemtype <soil_code>`
- :doc:`Trofiegraad <trofie>`
- :doc:`Zuurgraad <zuur>`
Expand Down
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
pandas
numpy
matplotlib
rasterio
pyyaml
rasterstats>=0.17
geopandas
pygeos
tqdm
tqdm
2 changes: 2 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,12 @@
requirements = [
'pandas',
'numpy',
'matplotlib',
'rasterio',
'pyyaml',
'rasterstats>=0.17',
'tqdm',
'pygeos',
'geopandas'
]

Expand Down

0 comments on commit 9c2ce1b

Please sign in to comment.