Skip to content

Commit a514a6b

Browse files
authored
Merge pull request #3 from GeoStat-Framework/develop
Bugfix 1.0.1
2 parents 52e690e + 57ffe24 commit a514a6b

8 files changed

Lines changed: 24 additions & 16 deletions

File tree

CHANGELOG.md

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@
33
All notable changes to **AnaFlow** will be documented in this file.
44

55

6+
## [1.0.1] - 2020-04-02
7+
8+
### Bugfixes
9+
- `ModuleNotFoundError` not present in py35
10+
- `np.asscalar` deprecated, use `array.item()`
11+
- `CHANGELOG.md` links updated
12+
13+
614
## [1.0.0] - 2020-03-22
715

816
### Enhancements
@@ -69,8 +77,9 @@ Containing:
6977
- lap_transgwflow_cyl - Solution for a diskmodel in laplace inversion
7078

7179

72-
[1.0.0]: https://github.com/GeoStat-Framework/gstools/compare/v0.4.0...v1.0.0
73-
[0.4.0]: https://github.com/GeoStat-Framework/gstools/compare/v0.3.0...v0.4.0
74-
[0.3.0]: https://github.com/GeoStat-Framework/gstools/compare/v0.2.4...v0.3.0
75-
[0.2.4]: https://github.com/GeoStat-Framework/gstools/compare/v0.1...v0.2.4
76-
[0.1.0]: https://github.com/GeoStat-Framework/gstools/releases/tag/v0.1
80+
[1.0.1]: https://github.com/GeoStat-Framework/AnaFlow/compare/v1.0.0...v1.0.1
81+
[1.0.0]: https://github.com/GeoStat-Framework/AnaFlow/compare/v0.4.0...v1.0.0
82+
[0.4.0]: https://github.com/GeoStat-Framework/AnaFlow/compare/v0.3.0...v0.4.0
83+
[0.3.0]: https://github.com/GeoStat-Framework/AnaFlow/compare/v0.2.4...v0.3.0
84+
[0.2.4]: https://github.com/GeoStat-Framework/AnaFlow/compare/v0.1...v0.2.4
85+
[0.1.0]: https://github.com/GeoStat-Framework/AnaFlow/releases/tag/v0.1

anaflow/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@
110110

111111
try:
112112
from anaflow._version import __version__
113-
except ModuleNotFoundError: # pragma: nocover
113+
except ImportError: # pragma: nocover
114114
# package is not installed
115115
__version__ = "0.0.0.dev0"
116116

anaflow/flow/laplace.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,9 +171,9 @@ def grf_laplace(
171171
diff_sr0 = np.sqrt(S_part[0] / K_part[0])
172172
# set the general pumping-condtion depending on the well-radius
173173
if R_part[0] > 0.0:
174-
Qs = -s ** (-0.5) / diff_sr0 * R_part[0] ** nu1 * cond(s, **cond_kw)
174+
Qs = -(s ** (-0.5)) / diff_sr0 * R_part[0] ** nu1 * cond(s, **cond_kw)
175175
else:
176-
Qs = -(2 / diff_sr0) ** nu * s ** (-nu / 2) * cond(s, **cond_kw)
176+
Qs = -((2 / diff_sr0) ** nu) * s ** (-nu / 2) * cond(s, **cond_kw)
177177

178178
# if there is a homgeneouse aquifer, compute the result by hand
179179
if parts == 1:

anaflow/tools/laplace.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ def integrand(val):
126126
result[phase_i] = quad(integ, 0, np.inf)[0]
127127

128128
if is_scal:
129-
result = np.asscalar(result)
129+
result = result.item()
130130

131131
return result
132132

anaflow/tools/special.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def reshape(self, result):
9999
elif self.rad_shape:
100100
result = np.diag(result).reshape(self.rad_shape)
101101
if self.time_scalar and self.rad_scalar:
102-
result = np.asscalar(result)
102+
result = result.item()
103103
return result
104104

105105

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 = AnaFlow
88
SOURCEDIR = source
99
BUILDDIR = build
1010

docs/source/conf.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,6 @@
2121
# pip install sphinx_rtd_theme
2222
# is needed in order to build the documentation
2323
import datetime
24-
import os
25-
import sys
26-
27-
sys.path.insert(0, os.path.abspath("../../"))
2824
from anaflow import __version__ as ver
2925

3026

@@ -173,6 +169,9 @@ def setup(app):
173169

174170
# Output file base name for HTML help builder.
175171
htmlhelp_basename = "AnaFlowdoc"
172+
# logos for the page
173+
html_logo = "pics/Anaflow_150.png"
174+
html_favicon = "pics/Anaflow.ico"
176175

177176

178177
# -- Options for LaTeX output ---------------------------------------------
@@ -233,7 +232,7 @@ def setup(app):
233232

234233
suppress_warnings = [
235234
"image.nonlocal_uri",
236-
# 'app.add_directive', # this evtl. suppresses the numpydoc induced warning
235+
# 'app.add_directive', # this evtl. suppresses the numpydoc induced warning
237236
]
238237

239238
# Example configuration for intersphinx: refer to the Python standard library.

docs/source/pics/Anaflow.ico

4.19 KB
Binary file not shown.

0 commit comments

Comments
 (0)