Skip to content

Commit

Permalink
replaced logger by hydromt
Browse files Browse the repository at this point in the history
  • Loading branch information
veenstrajelmer committed Oct 23, 2024
1 parent 41dea00 commit 59c0fce
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 19 deletions.
3 changes: 0 additions & 3 deletions hydromt_delft3dfm/workflows/branches.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ def prepare_branches(
snap_offset: float = 0.0,
allow_intersection_snapping: bool = False,
allowed_columns: List[str] = [],
logger: logging.Logger = logger,
) -> Tuple[gpd.GeoDataFrame, gpd.GeoDataFrame]:
"""
Set all common steps to add branches type of objects.
Expand Down Expand Up @@ -80,8 +79,6 @@ def prepare_branches(
By default True.
allowed_columns: list, optional
List of columns to filter in branches GeoDataFrame
logger: logging.Logger, optional
Logger.
Returns
-------
Expand Down
3 changes: 0 additions & 3 deletions hydromt_delft3dfm/workflows/crosssections.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ def prepare_default_friction_and_crosssection(
friction_value: float = 0.023,
crosssections_shape: Literal["rectangle", "circle"] = None,
crosssections_value: Union[List[float], float] = None,
logger: logging.Logger = logger,
):
"""
Prepare the default uniform friction and crosssection for branches.
Expand Down Expand Up @@ -60,8 +59,6 @@ def prepare_default_friction_and_crosssection(
used for br_type == "pipe".
If ``crosssections_shape`` = "rectangle", expects a list with [width, height]
(e.g. [1.0, 1.0]) [m]. used for br_type == "river" or "channel".
logger: Logger, optional
Logger.
Return
------
branches: gpd.GeoDataFrame
Expand Down
1 change: 0 additions & 1 deletion hydromt_delft3dfm/workflows/manholes.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ def generate_manholes_on_branches(
bedlevel_shift: float = 0.0,
id_prefix: str = "",
id_suffix: str = "",
logger=logging,
):
"""Generate manhole location and bedlevel from branches.
Expand Down
1 change: 0 additions & 1 deletion hydromt_delft3dfm/workflows/mesh.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,6 @@ def mesh2d_refine(
gdf_polygon: gpd.GeoDataFrame = None,
da_sample: xr.DataArray = None,
steps: int = 1,
logger: logging.Logger = logger,
) -> Tuple[Union[xu.UgridDataArray, xu.UgridDataset], float]:
"""Refine mesh2d by adding new nodes and faces.
Expand Down
4 changes: 0 additions & 4 deletions hydromt_delft3dfm/workflows/region.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
"""Workflows to parse region for Delft3D-FM model."""

import logging

import geopandas as gpd
from hydromt.model.processes.region import parse_region_geom
Expand All @@ -11,13 +10,10 @@
"parse_region_geometry",
]

logger = logging.getLogger("hydromt")


def parse_region_geometry(
region: dict,
crs: CRS,
logger: logging.Logger = logger,
):
"""Parse hydromt stype region argument into region geometry."""
kind, region = parse_region_geom(region)
Expand Down
5 changes: 0 additions & 5 deletions hydromt_delft3dfm/workflows/roughness.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
"""Workflows to prepare roughness for Delft3D-FM model."""

import logging

import geopandas as gpd

logger = logging.getLogger("hydromt")


__all__ = ["generate_roughness"]


Expand Down
2 changes: 0 additions & 2 deletions hydromt_delft3dfm/workflows/structures.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,6 @@ def prepare_1dstructures(
snap_offset: float, optional
Snapping tolerance to automatically snapping to branch.
By default 0.0, no snapping is applied.
logger: logging.Logger, optional
Logger.
Returns
-------
Expand Down

0 comments on commit 59c0fce

Please sign in to comment.