Skip to content

Commit c27a1ba

Browse files
committed
apply black+isort; add imports and docs
1 parent 1155393 commit c27a1ba

28 files changed

Lines changed: 107 additions & 158 deletions

examples/01_call_theis.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
88
Reference: `Theis 1935 <https://doi.org/10.1029/TR016i002p00519>`__
99
"""
10+
1011
import numpy as np
1112
from matplotlib import pyplot as plt
1213

examples/02_call_ext_theis2d.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
1313
Reference: `Zech et. al. 2016 <http://dx.doi.org/10.1002/2015WR018509>`__
1414
"""
15+
1516
import numpy as np
1617
from matplotlib import pyplot as plt
1718

@@ -51,12 +52,8 @@
5152
label_TG = "Theis($T_G$)" if i == 0 else None
5253
label_TH = "Theis($T_H$)" if i == 0 else None
5354
label_ef = "extended Theis" if i == 0 else None
54-
plt.plot(
55-
rad, head_TG[i], label=label_TG, color="C" + str(i), linestyle="--"
56-
)
57-
plt.plot(
58-
rad, head_TH[i], label=label_TH, color="C" + str(i), linestyle=":"
59-
)
55+
plt.plot(rad, head_TG[i], label=label_TG, color="C" + str(i), linestyle="--")
56+
plt.plot(rad, head_TH[i], label=label_TH, color="C" + str(i), linestyle=":")
6057
plt.plot(rad, head_ef[i], label=label_ef, color="C" + str(i))
6158
time_ticks.append(head_ef[i][-1])
6259

examples/03_call_ext_theis3d.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
1515
Reference: `Müller 2015 <http://dx.doi.org/10.13140/RG.2.2.34074.24002>`__
1616
"""
17+
1718
import numpy as np
1819
from matplotlib import pyplot as plt
1920

@@ -59,12 +60,8 @@
5960
label_TG = "Theis($K_{efu}$)" if i == 0 else None
6061
label_TH = "Theis($K_H$)" if i == 0 else None
6162
label_ef = "extended Theis 3D" if i == 0 else None
62-
plt.plot(
63-
rad, head_Kefu[i], label=label_TG, color="C" + str(i), linestyle="--"
64-
)
65-
plt.plot(
66-
rad, head_KH[i], label=label_TH, color="C" + str(i), linestyle=":"
67-
)
63+
plt.plot(rad, head_Kefu[i], label=label_TG, color="C" + str(i), linestyle="--")
64+
plt.plot(rad, head_KH[i], label=label_TH, color="C" + str(i), linestyle=":")
6865
plt.plot(rad, head_ef[i], label=label_ef, color="C" + str(i))
6966
time_ticks.append(head_ef[i][-1])
7067

examples/04_call_ext_theis_tpl.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
1414
Reference: (not yet published)
1515
"""
16+
1617
import numpy as np
1718
from matplotlib import pyplot as plt
1819

@@ -62,12 +63,8 @@
6263
label_TG = "Theis($K_G$)" if i == 0 else None
6364
label_TH = "Theis($K_H$)" if i == 0 else None
6465
label_ef = "extended Theis TPL 2D" if i == 0 else None
65-
plt.plot(
66-
rad, head_KG[i], label=label_TG, color="C" + str(i), linestyle="--"
67-
)
68-
plt.plot(
69-
rad, head_KH[i], label=label_TH, color="C" + str(i), linestyle=":"
70-
)
66+
plt.plot(rad, head_KG[i], label=label_TG, color="C" + str(i), linestyle="--")
67+
plt.plot(rad, head_KH[i], label=label_TH, color="C" + str(i), linestyle=":")
7168
plt.plot(rad, head_ef[i], label=label_ef, color="C" + str(i))
7269
time_ticks.append(head_ef[i][-1])
7370

examples/05_call_neuman2004.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
1515
Reference: `Neuman 2004 <https://doi.org/10.1029/2003WR002405>`__
1616
"""
17+
1718
import numpy as np
1819
from matplotlib import pyplot as plt
1920

@@ -61,12 +62,8 @@
6162
label_TG = "Theis($T_G$)" if i == 0 else None
6263
label_TH = "Theis($T_H$)" if i == 0 else None
6364
label_ef = "transient Neuman [2004]" if i == 0 else None
64-
plt.plot(
65-
rad, head_TG[i], label=label_TG, color="C" + str(i), linestyle="--"
66-
)
67-
plt.plot(
68-
rad, head_TH[i], label=label_TH, color="C" + str(i), linestyle=":"
69-
)
65+
plt.plot(rad, head_TG[i], label=label_TG, color="C" + str(i), linestyle="--")
66+
plt.plot(rad, head_TH[i], label=label_TH, color="C" + str(i), linestyle=":")
7067
plt.plot(rad, head_ef[i], label=label_ef, color="C" + str(i))
7168
time_ticks.append(head_ef[i][-1])
7269

examples/06_compare_extthiem2d_grfsteady.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
- `Schneider & Attinger 2008 <https://doi.org/10.1029/2007WR005898>`__
1212
- `Zech & Attinger 2016 <https://doi.org/10.5194/hess-20-1655-2016>`__
1313
"""
14+
1415
import numpy as np
1516
from matplotlib import pyplot as plt
1617

examples/07_compare_extthiem3d_grfsteady.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
99
Reference: `Zech et. al. 2012 <https://doi.org/10.1029/2012WR011852>`__
1010
"""
11+
1112
import numpy as np
1213
from matplotlib import pyplot as plt
1314

examples/08_compare_extthiem2d_neuman.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
- `Neuman 2004 <https://doi.org/10.1029/2003WR002405>`__
1414
- `Zech & Attinger 2016 <https://doi.org/10.5194/hess-20-1655-2016>`__
1515
"""
16+
1617
import numpy as np
1718
from matplotlib import pyplot as plt
1819

examples/09_compare_exttheis2d_neuman.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
- `Neuman 2004 <https://doi.org/10.1029/2003WR002405>`__
1414
- `Zech et. al. 2016 <http://dx.doi.org/10.1002/2015WR018509>`__
1515
"""
16+
1617
import numpy as np
1718
from matplotlib import pyplot as plt
1819

@@ -40,9 +41,7 @@
4041
plt.plot(rad, head2[i], label=label2, color="C" + str(i), linestyle="--")
4142
time_ticks.append(head1[i][-1])
4243

43-
plt.title(
44-
"$T_G={}$, $\sigma^2={}$, $\ell={}$, $S={}$".format(TG, var, len_scale, S)
45-
)
44+
plt.title("$T_G={}$, $\sigma^2={}$, $\ell={}$, $S={}$".format(TG, var, len_scale, S))
4645
plt.xlabel("r in [m]")
4746
plt.ylabel("h in [m]")
4847
plt.legend()

examples/10_convergence_ext_theis_tpl.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
88
Reference: (not yet published)
99
"""
10+
1011
import numpy as np
1112
from matplotlib import pyplot as plt
1213

@@ -25,9 +26,7 @@
2526
S = 1e-4 # storativity
2627
rate = -1e-4 # pumping rate
2728

28-
head1 = ext_thiem_tpl(
29-
rad, r_ref, KG, len_scale, hurst, var, dim=dim, rate=rate
30-
)
29+
head1 = ext_thiem_tpl(rad, r_ref, KG, len_scale, hurst, var, dim=dim, rate=rate)
3130
head2 = ext_theis_tpl(
3231
time, rad, S, KG, len_scale, hurst, var, dim=dim, rate=rate, r_bound=r_ref
3332
)

0 commit comments

Comments
 (0)