Skip to content

Commit

Permalink
more ruff after merge
Browse files Browse the repository at this point in the history
  • Loading branch information
dbrakenhoff committed Sep 25, 2024
1 parent be235cf commit 82bc347
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 18 deletions.
4 changes: 0 additions & 4 deletions examples/timml_notebook0_sol.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@
)



# The default contour levels are not what we want for this example, so let's
# specify the levels to go from 39 to 42 with steps of 0.1 (not all those levels
# are present in the current window).
Expand All @@ -83,7 +82,6 @@
# In[8]:



w = timml.Well(ml, xw=-400, yw=0, Qw=50.0, rw=0.2)

# After the well is added (or any other elements), the model needs to be solved again. A contour plot is created and a 10 strace line are added. The stepsize is given in meters and represents the largest space step that is taken, but it is reduced when certain accuracy constraints are not met. Note that, after running the code cell below, for each trace line it is printed to the screen what the reason was that the traceline was aborted. In this case it was either because the trace line reached a well or reached the maximum number of steps (the default is 100 steps, but this can be changed by specifying the `nstepmax` keyword).
Expand Down Expand Up @@ -162,14 +160,12 @@
)



# ### Capture zone
# Create a five year capture zone. You may want to create a contour plot first.

# In[14]:



ml.contour(-1000, 100, 50, -500, 500, 50, levels=np.arange(39, 42, 0.1), layers=0)
w.plotcapzone(hstepmax=20, nt=20, zstart=0, tmax=5 * 365.25, color="b")

Expand Down
1 change: 0 additions & 1 deletion examples/workshop_nhv/vlaketunnel_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ def create_model(
c_channel = ml.aq.c.copy()
c_channel[0] = c_channel_bot


# channel_0:
tml.PolygonInhomMaq(
kaq=ml.aq.kaq,
Expand Down
2 changes: 1 addition & 1 deletion tests/test_import.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
def test_import():
pass
import timml

print(timml.__version__)

Expand Down
2 changes: 1 addition & 1 deletion tests/test_notebooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def get_jupyter_kernel():
return kernel


@pytest.mark.notebooks()
@pytest.mark.notebooks
@pytest.mark.parametrize("pth", get_notebooks())
def test_notebook(pth):
kernel = get_jupyter_kernel()
Expand Down
23 changes: 12 additions & 11 deletions timml/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,6 @@
__name__ = "timml"
__author__ = "Mark Bakker"
# Import all classes and functions
from . import bessel
from .circareasink import CircAreaSink
from .constant import Constant, ConstantStar
from .inhomogeneity import (
BuildingPit3D,
BuildingPitMaq,
LeakyBuildingPit3D,
LeakyBuildingPitMaq,
PolygonInhom3D,
PolygonInhomMaq,
)
from timml.inhomogeneity1d import StripInhom3D, StripInhomMaq
from timml.linedoublet import (
ImpLineDoublet,
Expand All @@ -49,6 +38,18 @@
from timml.version import __version__
from timml.well import HeadWell, LargeDiameterWell, Well, WellBase

from . import bessel
from .circareasink import CircAreaSink
from .constant import Constant, ConstantStar
from .inhomogeneity import (
BuildingPit3D,
BuildingPitMaq,
LeakyBuildingPit3D,
LeakyBuildingPitMaq,
PolygonInhom3D,
PolygonInhomMaq,
)

__all__ = [
"CircAreaSink",
"Constant",
Expand Down
1 change: 1 addition & 0 deletions timml/bessel.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ def set_bessel_method(method="numba"):
warn(
"Cannot import compiled fortran bessel module! Defaulting to numba!",
category=ImportWarning,
stacklevel=1,
)
bessel = import_module("timml.besselaesnumba.besselaesnumba")
elif method == "numba":
Expand Down
1 change: 1 addition & 0 deletions timml/inhomogeneity.py
Original file line number Diff line number Diff line change
Expand Up @@ -767,6 +767,7 @@ def __init__(
f"Found resistances smaller than {self.tiny}, "
f"these were replaced by {self.tiny}.",
category=UserWarning,
stacklevel=1,
)
self.res[self.res < self.tiny] = self.tiny

Expand Down
1 change: 1 addition & 0 deletions timml/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -675,6 +675,7 @@ def __init__(
hstar=0,
):
"""Model3D.
for semi-confined aquifers, set top equal to 'semi' and provide
topres: resistance of top
tophick: thickness of top
Expand Down

0 comments on commit 82bc347

Please sign in to comment.