Skip to content

Commit

Permalink
Improve docs (#54)
Browse files Browse the repository at this point in the history
* improve docs
- add new sections (like TimML)
- run docformatter
- fix some linting issues

* fix coveralls parallel build issue

* update gitignore

* add sphinx-bibtex to  docs deps

* move pumptests notebooks to docs

* rename api folder

* add about section with bibliography

* update main docs page layout
update conf.py

* add all examples

* add newline

* delete moved notebooks from notebook dir
- update tests accordingly

* update nbdirs

* no more notebooks remaining in notebooks dir

* fix nb tests

* hopefully final fix
  • Loading branch information
dbrakenhoff authored Dec 20, 2023
1 parent 577703f commit 4d60993
Show file tree
Hide file tree
Showing 157 changed files with 548 additions and 1,807 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,16 @@ jobs:
py.test ./tests
- name: Publish to coveralls.io
run: coveralls --service=github
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: coverallsapp/github-action@v2
with:
parallel: true
github-token: ${{ secrets.GITHUB_TOKEN }}

finish:
needs: test
runs-on: ubuntu-latest
steps:
- name: Close parallel build
uses: coverallsapp/github-action@v2
with:
parallel-finished: true
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -109,4 +109,4 @@ Info.plist

# docs
_build
/docs/api/generated/
/docs/05api/generated/
9 changes: 9 additions & 0 deletions docs/00tutorials/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Tutorials
=========

TTim tutorials.

.. toctree::
:maxdepth: 3
:hidden:
:glob:
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
10 changes: 10 additions & 0 deletions docs/02concepts/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Concepts
========

This section contains explanations of some basic concepts that are used in TTim.


.. toctree::
:maxdepth: 3


File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
72 changes: 72 additions & 0 deletions docs/03examples/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
Examples
========

TTim example notebooks.

.. toctree::
:maxdepth: 4
:hidden:
:glob:

compare_wells_linesink
aem_ttim_sol
circareasink_example
line_sink_well_sol
line-sink-ditch
meandering_river
pathline_trace
pumpingtest_hypothetical
pumpingtest
theis_storage
ttim_exercise1_sol
ttim_figures
ttim_neuman_comparison
ttim_pumptest_neuman
ttim_slugtest
well_example
well_near_river_or_wall
well_near_wall
wells_in_different_systems


* `Comparing linesink with row of wells`_
* `aem_ttim_sol`_
* `circareasink_example`_
* `line_sink_well_sol`_
* `line-sink-ditch`_
* `meandering_river`_
* `pathline_trace`_
* `pumpingtest_hypothetical`_
* `pumpingtest`_
* `theis_storage`_
* `ttim_exercise1_sol`_
* `ttim_figures`_
* `ttim_neuman_comparison`_
* `ttim_pumptest_neuman`_
* `ttim_slugtest`_
* `well_example`_
* `well_near_river_or_wall`_
* `well_near_wall`_
* `wells_in_different_systems`_


.. _Comparing linesink with row of wells: compare_wells_linesink.html
.. _aem_ttim_sol: aem_ttim_sol.html
.. _circareasink_example: circareasink_example.html
.. _compare_wells_linesink: compare_wells_linesink.html
.. _line_sink_well_sol: line_sink_well_sol.html
.. _line-sink-ditch: line-sink-ditch.html
.. _meandering_river: meandering_river.html
.. _pathline_trace: pathline_trace.html
.. _pumpingtest_hypothetical: pumpingtest_hypothetical.html
.. _pumpingtest: pumpingtest.html
.. _theis_storage: theis_storage.html
.. _ttim_exercise1_sol: ttim_exercise1_sol.html
.. _ttim_figures: ttim_figures.html
.. _ttim_neuman_comparison: ttim_neuman_comparison.html
.. _ttim_pumptest_neuman: ttim_pumptest_neuman.html
.. _ttim_slugtest: ttim_slugtest.html
.. _well_example: well_example.html
.. _well_near_river_or_wall: well_near_river_or_wall.html
.. _well_near_wall: well_near_wall.html
.. _wells_in_different_systems: wells_in_different_systems.html
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Meandering river"
]
},
{
"cell_type": "code",
"execution_count": 1,
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# TTim aquifer figures"
]
},
{
"cell_type": "code",
"execution_count": 1,
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Well near impermeable wall"
]
},
{
"cell_type": "code",
"execution_count": 1,
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"metadata": {},
"source": [
"# 1. Confined Aquifer Test - Oude Korendijk\n",
"\n",
"**This example is taken from Kruseman and de Ridder (1970)**"
]
},
Expand Down Expand Up @@ -68,7 +69,6 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"<a id='step_3'></a>\n",
"## Step 3: Creating a TTim conceptual model\n",
"\n",
"In this example, we are using the ModelMaq model to conceptualize our aquifer. ModelMaq defines the aquifer system as a stacked vertical sequence of aquifers and leaky layers (aquifer-leaky layer, aquifer-leaky layer, etc). Aquifers are conceptualized as having no vertical resistance (Dupuit approximation), with constant hydraulic conductivity and storage. Aquitard layers are approximated as having only vertical flow. They are characterized by the parameter resistance to vertical flow and by having no storage.\n",
Expand Down Expand Up @@ -195,7 +195,6 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"<a id='step_5_1'></a>\n",
"### Step 5.1: Calibration with Observation from Piezometer 1 (30 m from well)\n",
"\n",
"We begin calibrating using only the data from observation 1:"
Expand Down Expand Up @@ -408,7 +407,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"### Plotting the model Results"
"#### Plotting the model Results"
]
},
{
Expand Down Expand Up @@ -444,15 +443,15 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"## Step 5.2. Calibrate model Parameters with Observation Well 2 (90 m distance)"
"### Step 5.2. Calibrate model Parameters with Observation Well 2 (90 m distance)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
" We proceed to calibrate using only the data from observation well 2.\n",
" This time we will rush foward through the calibration steps. If the user feels confused, one can go back and check the inputs in [***step 5.1***](#step_5_1)"
" This time we will rush foward through the calibration steps. If the user feels confused, one can go back and check the inputs in [***step 5.1***](#step-51-calibration-with-observation-from-piezometer-1-30-m-from-well)"
]
},
{
Expand Down Expand Up @@ -602,7 +601,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"## Step 5.3. Calibrate model with two datasets simultaneously"
"### Step 5.3. Calibrate model with two datasets simultaneously"
]
},
{
Expand Down Expand Up @@ -798,7 +797,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"Now, besides the parameters explained in [Step 3](#step_3), we have to add the radius of the caisson (```rc```)"
"Now, besides the parameters explained in [Step 3](#step-3-creating-a-ttim-conceptual-model), we have to add the radius of the caisson (```rc```)"
]
},
{
Expand Down Expand Up @@ -1574,13 +1573,6 @@
"* Kruseman, G.P., De Ridder, N.A., Verweij, J.M., 1970. Analysis and evaluationof pumping test data. volume 11. International institute for land reclamation and improvement The Netherlands.\n",
"* Yang, Xinzhu (2020) Application and comparison of different methodsfor aquifer test analysis using TTim. Master Thesis, Delft University of Technology (TUDelft), Delft, The Netherlands."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"#### Next Notebook: 2. reference "
]
}
],
"metadata": {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
24 changes: 24 additions & 0 deletions docs/04pumpingtests/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
Pumping tests
=============

TTim pumping test benchmark notebooks.

.. toctree::
:maxdepth: 1

0_synthetic_data
1_test_of_oude_korendijk
2_test_of_dalem
3_test_of_vennebulten
4_test_of_gridley
5_test_of_sioux
6_test_of_schroth
7_test_of_neveda_double-porosity
8_test_of_hardinxveld_recovery
9_test_of_texas_hill
10_moench_test
11_slug_test_pratt_county
12_falling-head_slug_test
13_multiwell_slug_test-
14_dawsonville_slug_test
confined1_oude_korendijk
2 changes: 1 addition & 1 deletion docs/api/index.rst → docs/05api/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@ Python code.

.. toctree::
:hidden:
:maxdepth: 4
:maxdepth: 2
:glob:
11 changes: 11 additions & 0 deletions docs/06about/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Cite
====

Publications
------------

.. bibliography:: publications.bib
:list: bullet

bakker_semi-analytic_2013
bakker_analytic_2013
38 changes: 38 additions & 0 deletions docs/06about/publications.bib
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@

@article{bakker_semi-analytic_2013,
title = {Semi-analytic modeling of transient multi-layer flow with {TTim}},
volume = {21},
issn = {1435-0157},
url = {https://doi.org/10.1007/s10040-013-0975-2},
doi = {10.1007/s10040-013-0975-2},
abstract = {TTim is a free code for the semi-analytic simulation of transient flow in multi-layer systems consisting of an arbitrary number of layers. No grid or time-stepping is required, nor does a closed model boundary need to be specified in any of the layers. Currently, TTim includes multi-layer wells and line-sinks, which may be used to simulate transient flow to a variety of hydrogeologic features, including wells with a skin and wellbore storage, incompletely sealed abandoned wells, streams with leaky beds, vertical faults, and horizontal wells; transient forcing needs to be represented by a step function. Other features that may be simulated include vertical anisotropy and the delayed response of the water table. Behind the scenes of TTim, the Laplace-transform analytic element method is applied. TTim is written in Python, with Python scripts used as input files. TTim has many practical applications, including the design of riverbank filtration systems, analysis of aquifer tests near surface-water bodies, design and evaluation of recirculation wells, and modeling of the transient pressure response of proposed carbon geologic sequestration projects. In addition, the short and simple input files and the one-to-one link between analytic elements and hydrogeologic features make TTim well suited for education.},
language = {en},
number = {4},
urldate = {2023-03-17},
journal = {Hydrogeology Journal},
author = {Bakker, Mark},
month = jun,
year = {2013},
keywords = {analytic, analytic element, Analytic element method, and is implemented in, bakker 2012, code ttim, computer, groundwater modeling, Groundwater modeling, method, multi-layer, Multi-layer, pronounced, tee-tim, the free and open-source, transient fl ow, Transient flow},
pages = {935--943},
file = {Full Text:/home/david/Zotero/storage/SDZGNFL7/Bakker - 2013 - Semi-analytic modeling of transient multi-layer fl.pdf:application/pdf},
}

@incollection{bakker_analytic_2013,
address = {New York, NY},
title = {Analytic {Modeling} of {Transient} {Multilayer} {Flow}},
isbn = {978-1-4614-6479-2},
url = {https://doi.org/10.1007/978-1-4614-6479-2_5},
abstract = {An approach is presented for the semi-analytic simulation of transient flow in systems consisting of an arbitrary number of layers. Storage in both aquifer layers and leaky layers is taken into account. Flow in the system is generated by wells and line-sinks. Wells and line-sinks may be open to an arbitrary number of layers, which allows for the simulation of multi-aquifer wells, abandoned wells, partially penetrating streams, and linear fractures that provide a hydraulic connection between aquifer layers.},
language = {en},
urldate = {2023-03-17},
booktitle = {Advances in {Hydrogeology}},
publisher = {Springer},
author = {Bakker, Mark},
editor = {Mishra, Phoolendra K. and Kuhlman, Kristopher L.},
year = {2013},
doi = {10.1007/978-1-4614-6479-2_5},
keywords = {Aquifer Layer, Multilayer System, Stream Segment, Transient Flow, Unconfined Aquifer},
pages = {95--114},
file = {Full Text:/home/david/Zotero/storage/83T646QS/Bakker - 2013 - Analytic Modeling of Transient Multilayer Flow.pdf:application/pdf},
}
25 changes: 16 additions & 9 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"myst_nb",
"sphinx_design",
"sphinx.ext.autosectionlabel",
"sphinxcontrib.bibtex",
]

templates_path = ["_templates"]
Expand All @@ -48,15 +49,15 @@
html_theme_options = {
"github_url": "https://github.com/mbakker7/ttim",
"use_edit_page_button": True,
"header_links_before_dropdown": 6,
"icon_links": [
{
"name": "GitHub", # Label for this link
"url": "https://github.com/mbakker7/ttim", # required
"icon": "fab fa-github-square",
"type": "fontawesome", # Default is fontawesome
}
],
"header_links_before_dropdown": 7,
# "icon_links": [
# {
# "name": "GitHub", # Label for this link
# "url": "https://github.com/mbakker7/ttim", # required
# "icon": "fab fa-github-square",
# "type": "fontawesome", # Default is fontawesome
# }
# ],
}

html_context = {
Expand Down Expand Up @@ -100,3 +101,9 @@

nb_execution_allow_errors = True # Allow errors in notebooks, to see the error online
nb_execution_mode = "auto"

# -- bibtex options ------------------------------------------------------------------

# Add some settings for bibtex
bibtex_bibfiles = ["06about/publications.bib"]
bibtex_reference_style = "author_year"
16 changes: 0 additions & 16 deletions docs/examples/index.rst

This file was deleted.

Loading

0 comments on commit 4d60993

Please sign in to comment.