Skip to content

Commit

Permalink
Minor bugfix in downscale floodmap routine when providing a file_name (
Browse files Browse the repository at this point in the history
…#224)

* bug fix

* remove print statement

* pre-commit and black .

* crs_to_string fux

---------

Co-authored-by: roeldegoede <[email protected]>
  • Loading branch information
vanasseltk and roeldegoede authored Nov 29, 2024
1 parent 5833e87 commit 7948d2f
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions hydromt_sfincs/plots.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Plotting functions for SFINCS model data."""

from typing import Dict, List, Tuple

import numpy as np
Expand Down
1 change: 1 addition & 0 deletions hydromt_sfincs/regulargrid.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""RegularGrid class for SFINCS."""

import logging
import math
import os
Expand Down
1 change: 1 addition & 0 deletions hydromt_sfincs/sfincs.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
SfincsModel class
"""

from __future__ import annotations

import glob
Expand Down
1 change: 1 addition & 0 deletions hydromt_sfincs/subgrid.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
SubgridTableRegular class to create, read and write sfincs subgrid (sbg) files.
"""

import gc
import logging
import os
Expand Down
2 changes: 1 addition & 1 deletion hydromt_sfincs/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -939,7 +939,7 @@ def downscale_floodmap(
return hmax

elif isinstance(dep, (str, Path)):
if floodmap_fn is not None:
if floodmap_fn is None:
raise ValueError(
"floodmap_fn should be provided when dep is a Path or str."
)
Expand Down
1 change: 1 addition & 0 deletions hydromt_sfincs/workflows/bathymetry.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Workflows, to estimate river bathymetry and burn these in a DEM."""

import logging

import geopandas as gpd
Expand Down
1 change: 1 addition & 0 deletions hydromt_sfincs/workflows/curvenumber.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Workflow for curve number."""

import logging

import numpy as np
Expand Down
1 change: 1 addition & 0 deletions hydromt_sfincs/workflows/discharge.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Workflows for discharge boundary conditions."""

import logging

import geopandas as gpd
Expand Down
1 change: 1 addition & 0 deletions hydromt_sfincs/workflows/landuse.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Landuse related workflows for SFINCS."""

import logging

import numpy as np
Expand Down
1 change: 1 addition & 0 deletions hydromt_sfincs/workflows/merge.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Workflow to merge multiple datasets into a single dataset used for elevation and manning data."""

import logging
from typing import Dict, List, Union

Expand Down
1 change: 1 addition & 0 deletions hydromt_sfincs/workflows/tiling.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tiling functions for fast visualization of the SFINCS model in- and output data."""

import logging
import math
import os
Expand Down

0 comments on commit 7948d2f

Please sign in to comment.