Skip to content

Commit d00ad7c

Browse files
authored
Merge pull request #7 from GeoStat-Framework/sphinx_update
Sphinx update: Gallery
2 parents a72f189 + 1aa6fcb commit d00ad7c

31 files changed

+405
-292
lines changed

.gitignore

Lines changed: 123 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,125 @@
1-
*.pyc
2-
*.orig
3-
*~
4-
.spyproject/
1+
# Byte-compiled / optimized / DLL files
52
__pycache__/
6-
docs/build/
7-
#_build
8-
#_static
9-
#_templates
10-
#docs/
3+
*.py[cod]
4+
*$py.class
5+
6+
# C extensions
7+
*.so
8+
9+
# Distribution / packaging
10+
.Python
11+
env/
12+
build/
13+
develop-eggs/
14+
dist/
15+
downloads/
16+
eggs/
17+
.eggs/
18+
lib/
19+
lib64/
20+
parts/
21+
sdist/
22+
var/
23+
wheels/
24+
*.egg-info/
25+
.installed.cfg
26+
*.egg
27+
28+
# PyInstaller
29+
# Usually these files are written by a python script from a template
30+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
31+
*.manifest
32+
*.spec
33+
34+
# Installer logs
35+
pip-log.txt
36+
pip-delete-this-directory.txt
37+
38+
# Unit test / coverage reports
39+
htmlcov/
40+
.tox/
41+
.coverage
42+
.coverage.*
43+
.cache
44+
nosetests.xml
45+
coverage.xml
46+
*.cover
47+
.hypothesis/
48+
49+
# Translations
50+
*.mo
51+
*.pot
52+
53+
# Django stuff:
54+
*.log
55+
local_settings.py
56+
57+
# Flask stuff:
58+
instance/
59+
.webassets-cache
60+
61+
# Scrapy stuff:
62+
.scrapy
63+
64+
# Sphinx documentation
65+
docs/_build/
66+
docs/output.txt
67+
68+
# PyBuilder
69+
target/
70+
71+
# Jupyter Notebook
72+
.ipynb_checkpoints
73+
74+
# pyenv
75+
.python-version
76+
77+
# celery beat schedule file
78+
celerybeat-schedule
79+
80+
# SageMath parsed files
81+
*.sage.py
82+
83+
# dotenv
84+
.env
85+
86+
# virtualenv
87+
.venv
88+
venv/
89+
ENV/
90+
91+
# Spyder project settings
92+
.spyderproject
93+
.spyproject
94+
95+
# Rope project settings
96+
.ropeproject
97+
98+
# mkdocs documentation
99+
/site
100+
101+
# mypy
102+
.mypy_cache/
103+
104+
tags
105+
/test_*
106+
107+
# own stuff
11108
info/
109+
110+
# Cython generated C code
111+
*.c
112+
*.cpp
113+
114+
115+
# generated docs
116+
docs/source/examples/
117+
docs/source/generated/
118+
examples/Cmp_UFZ-campaign.cmp
119+
120+
*.DS_Store
121+
122+
*.zip
123+
124+
*.vtu
125+
*.vtr

CHANGELOG.md

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
# Changelog
2+
3+
All notable changes to **welltestpy** will be documented in this file.
4+
5+
6+
## [1.0.0] - 2020-04
7+
8+
### Enhancements
9+
- new estimators
10+
- ExtTheis3D
11+
- ExtTheis2D
12+
- Neuman2004
13+
- Theis
14+
- ExtThiem3D
15+
- ExtThiem2D
16+
- Neuman2004Steady
17+
- Thiem
18+
- better plotting
19+
- unit-tests run with py35-py38 on Linux/Win/Mac
20+
- coverage
21+
- sphinx gallery for examples
22+
23+
### Bugfixes
24+
- estimation results stored as dict (order could alter before)
25+
26+
### Changes
27+
- py2 support dropped
28+
29+
30+
## [0.3.2] - 2019-03-08
31+
32+
### Bugfixes
33+
- adopt AnaFlow API
34+
35+
36+
## [0.3.1] - 2019-03-08
37+
38+
### Bugfixes
39+
- update travis workflow
40+
41+
42+
## [0.3.0] - 2019-02-28
43+
44+
### Enhancements
45+
- added documentation
46+
47+
48+
## [0.2.0] - 2018-04-25
49+
50+
### Enhancements
51+
- added license
52+
53+
54+
## [0.1.0] - 2018-04-25
55+
56+
First alpha release of welltespy.
57+
58+
[1.0.0]: https://github.com/GeoStat-Framework/welltestpy/compare/v0.3.2...v1.0.0
59+
[0.3.2]: https://github.com/GeoStat-Framework/welltestpy/compare/v0.3.1...v0.3.2
60+
[0.3.1]: https://github.com/GeoStat-Framework/welltestpy/compare/v0.3.0...v0.3.1
61+
[0.3.0]: https://github.com/GeoStat-Framework/welltestpy/compare/v0.2...v0.3.0
62+
[0.2.0]: https://github.com/GeoStat-Framework/welltestpy/compare/v0.1...v0.2
63+
[0.1.0]: https://github.com/GeoStat-Framework/welltestpy/releases/tag/v0.1

README.md

Lines changed: 20 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22

33
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.1229051.svg)](https://doi.org/10.5281/zenodo.1229051)
44
[![PyPI version](https://badge.fury.io/py/welltestpy.svg)](https://badge.fury.io/py/welltestpy)
5-
[![Build Status](https://travis-ci.org/GeoStat-Framework/welltestpy.svg?branch=master)](https://travis-ci.org/GeoStat-Framework/welltestpy)
6-
[![Documentation Status](https://readthedocs.org/projects/welltestpy/badge/?version=latest)](https://geostat-framework.readthedocs.io/projects/welltestpy/en/latest/?badge=latest)
5+
[![Build Status](https://travis-ci.com/GeoStat-Framework/welltestpy.svg?branch=master)](https://travis-ci.com/GeoStat-Framework/welltestpy)
6+
[![Coverage Status](https://coveralls.io/repos/github/GeoStat-Framework/welltestpy/badge.svg?branch=master)](https://coveralls.io/github/GeoStat-Framework/welltestpy?branch=master)
7+
[![Documentation Status](https://readthedocs.org/projects/welltestpy/badge/?version=stable)](https://geostat-framework.readthedocs.io/projects/welltestpy/en/stable/?badge=stable)
78
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/ambv/black)
89

910
<p align="center">
@@ -27,71 +28,20 @@ You can install the latest version with the following command:
2728
You can find the documentation under [geostat-framework.readthedocs.io][doc_link].
2829

2930

30-
### Example 1: Create a Campaign containing a pumping test
31+
### Example 1: A campaign containing a pumping test
3132

32-
In the following a simple pumping test is created with artificial drawdown data
33-
generated by the Theis-solution.
33+
In the following, we will take a look at an artificial pumping test campaign,
34+
that is stored in a file called `Cmp_UFZ-campaign.cmp`.
3435

3536
```python
36-
# -*- coding: utf-8 -*-
37-
import numpy as np
3837
import welltestpy as wtp
39-
import anaflow as ana
40-
41-
### create the field-site and the campaign
42-
field = wtp.data.FieldSite(name="UFZ", coordinates=[51.353839, 12.431385])
43-
campaign = wtp.data.Campaign(name="UFZ-campaign", fieldsite=field)
44-
45-
### add 4 wells to the campaign
46-
campaign.add_well(name="well_0", radius=0.1, coordinates=(0.0, 0.0))
47-
campaign.add_well(name="well_1", radius=0.1, coordinates=(1.0, -1.0))
48-
campaign.add_well(name="well_2", radius=0.1, coordinates=(2.0, 2.0))
49-
campaign.add_well(name="well_3", radius=0.1, coordinates=(-2.0, -1.0))
50-
51-
### generate artificial drawdown data with the Theis solution
52-
rate = -1e-4
53-
time = np.geomspace(10, 7200, 10)
54-
transmissivity = 1e-4
55-
storage = 1e-4
56-
rad = [
57-
campaign.wells["well_0"].radius, # well radius of well_0
58-
campaign.wells["well_0"] - campaign.wells["well_1"], # distance 0-1
59-
campaign.wells["well_0"] - campaign.wells["well_2"], # distance 0-2
60-
campaign.wells["well_0"] - campaign.wells["well_3"], # distance 0-3
61-
]
62-
drawdown = ana.theis(
63-
time=time,
64-
rad=rad,
65-
storage=storage,
66-
transmissivity=transmissivity,
67-
rate=rate,
68-
)
69-
70-
### create a pumping test at well_0
71-
pumptest = wtp.data.PumpingTest(
72-
name="well_0",
73-
pumpingwell="well_0",
74-
pumpingrate=rate,
75-
description="Artificial pump test with Theis",
76-
)
77-
78-
### add the drawdown observation at the 4 wells
79-
pumptest.add_transient_obs("well_0", time, drawdown[:, 0])
80-
pumptest.add_transient_obs("well_1", time, drawdown[:, 1])
81-
pumptest.add_transient_obs("well_2", time, drawdown[:, 2])
82-
pumptest.add_transient_obs("well_3", time, drawdown[:, 3])
83-
84-
### add the pumping test to the campaign
85-
campaign.addtests(pumptest)
86-
### optionally make the test steady
87-
# campaign.tests["well_0"].make_steady()
88-
89-
### plot the well constellation and a test overview
38+
39+
# create the field-site and the campaign
40+
campaign = wtp.load_campaign("Cmp_UFZ-campaign.cmp")
41+
42+
# plot the well constellation and a test overview
9043
campaign.plot_wells()
9144
campaign.plot()
92-
93-
### save the whole campaign
94-
campaign.save()
9545
```
9646

9747
#### This will give the following plots:
@@ -104,8 +54,6 @@ campaign.save()
10454
<img src="https://raw.githubusercontent.com/GeoStat-Framework/welltestpy/master/docs/source/pics/01_pumptest.png" alt="Pumptest" width="600px"/>
10555
</p>
10656

107-
And the campaign is stored to a file called `Cmp_UFZ-campaign.cmp`
108-
10957

11058
### Example 2: Estimate transmissivity and storativity
11159

@@ -115,7 +63,7 @@ transmissivity and storativity.
11563
```python
11664
import welltestpy as wtp
11765

118-
campaign = wtp.data.load_campaign("Cmp_UFZ-campaign.cmp")
66+
campaign = wtp.load_campaign("Cmp_UFZ-campaign.cmp")
11967
estimation = wtp.estimate.Theis("Estimate_theis", campaign, generate=True)
12068
estimation.run()
12169
```
@@ -158,12 +106,12 @@ welltestpy.tools # Subpackage with miscellaneous tools
158106

159107
## Requirements
160108

161-
- [NumPy >= 1.13.0](https://www.numpy.org)
162-
- [SciPy >= 0.19.1](https://www.scipy.org)
163-
- [Pandas >= 0.20.3](https://pandas.pydata.org)
164-
- [Matplotlib >= 2.0.2](https://matplotlib.org)
165-
- [AnaFlow](https://github.com/GeoStat-Framework/AnaFlow)
166-
- [SpotPy](https://github.com/thouska/spotpy)
109+
- [NumPy >= 1.14.5](https://www.numpy.org)
110+
- [SciPy >= 1.1.0](https://www.scipy.org)
111+
- [Pandas >= 0.23.2](https://pandas.pydata.org)
112+
- [AnaFlow >= 1.0.0](https://github.com/GeoStat-Framework/AnaFlow)
113+
- [SpotPy >= 1.5.0](https://github.com/thouska/spotpy)
114+
- [Matplotlib >= 3.0.0](https://matplotlib.org)
167115

168116

169117
## Contact
@@ -173,7 +121,7 @@ You can contact us via <[email protected]>.
173121

174122
## License
175123

176-
[MIT][license_link] © 2018-2019
124+
[MIT][license_link] © 2018-2020
177125

178126
[license_link]: https://github.com/GeoStat-Framework/welltestpy/blob/master/LICENSE
179-
[doc_link]: https://geostat-framework.readthedocs.io/projects/welltestpy/en/latest/
127+
[doc_link]: https://welltestpy.readthedocs.io

docs/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# You can set these variables from the command line.
55
SPHINXOPTS =
66
SPHINXBUILD = python3 -msphinx
7-
SPHINXPROJ = GeoStatTools
7+
SPHINXPROJ = welltestpy
88
SOURCEDIR = source
99
BUILDDIR = build
1010

docs/requirements_doc.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
numpydoc
2+
sphinx-gallery

0 commit comments

Comments
 (0)