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 fa65bb5 commit 41dea00
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion hydromt_delft3dfm/gis_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
)
from shapely.ops import snap, split

logger = logging.getLogger(__name__)
logger = logging.getLogger("hydromt")


__all__ = [
Expand Down
2 changes: 1 addition & 1 deletion hydromt_delft3dfm/graph_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import pandas as pd
from shapely.geometry import Point

logger = logging.getLogger(__name__)
logger = logging.getLogger("hydromt")


__all__ = ["gpd_to_digraph", "get_endnodes_from_lines"]
Expand Down
2 changes: 1 addition & 1 deletion hydromt_delft3dfm/mesh_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# TODO: maybe move this function here instead of under workflows?
from hydromt_delft3dfm.workflows.mesh import _set_link1d2d

logger = logging.getLogger(__name__)
logger = logging.getLogger("hydromt")


__all__ = [
Expand Down
2 changes: 1 addition & 1 deletion hydromt_delft3dfm/workflows/boundaries.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

from hydromt_delft3dfm import graph_utils

logger = logging.getLogger(__name__)
logger = logging.getLogger("hydromt")

__all__ = [
"get_boundaries_with_nodeid",
Expand Down
2 changes: 1 addition & 1 deletion hydromt_delft3dfm/workflows/branches.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

from ..gis_utils import cut_pieces, split_lines

logger = logging.getLogger(__name__)
logger = logging.getLogger("hydromt")


__all__ = [
Expand Down
2 changes: 1 addition & 1 deletion hydromt_delft3dfm/workflows/crosssections.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from ..gis_utils import check_gpd_attributes
from .branches import find_nearest_branch, update_data_columns_attributes

logger = logging.getLogger(__name__)
logger = logging.getLogger("hydromt")


__all__ = [
Expand Down
2 changes: 1 addition & 1 deletion hydromt_delft3dfm/workflows/dem.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from scipy import ndimage
from shapely.geometry import Point

logger = logging.getLogger(__name__)
logger = logging.getLogger("hydromt")


__all__ = ["invert_levels_from_dem", "get_river_bathymetry"]
Expand Down
2 changes: 1 addition & 1 deletion hydromt_delft3dfm/workflows/manholes.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from hydromt.gis._vector_utils import _nearest_merge
from shapely.geometry import Point

logger = logging.getLogger(__name__)
logger = logging.getLogger("hydromt")


__all__ = [
Expand Down
2 changes: 1 addition & 1 deletion hydromt_delft3dfm/workflows/mesh.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

from .. import mesh_utils as mutils

logger = logging.getLogger(__name__)
logger = logging.getLogger("hydromt")


__all__ = [
Expand Down
2 changes: 1 addition & 1 deletion hydromt_delft3dfm/workflows/region.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"parse_region_geometry",
]

logger = logging.getLogger(__name__)
logger = logging.getLogger("hydromt")


def parse_region_geometry(
Expand Down
2 changes: 1 addition & 1 deletion hydromt_delft3dfm/workflows/roughness.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import geopandas as gpd

logger = logging.getLogger(__name__)
logger = logging.getLogger("hydromt")


__all__ = ["generate_roughness"]
Expand Down
2 changes: 1 addition & 1 deletion tests/test_hydromt.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def test_model_build(tmpdir, modelname):

# Compare with model from examples folder
# (need to read it again for proper geoms check)
mod1 = DFlowFMModel(root=root, mode="r"))
mod1 = DFlowFMModel(root=root, mode="r")
mod1.read()
root = join(EXAMPLEDIR, f"dflowfm_{modelname}")
mod0 = DFlowFMModel(root=root, mode="r")
Expand Down

0 comments on commit 41dea00

Please sign in to comment.