Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions src/dscim/preprocessing/input_damages.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
from functools import partial
from p_tqdm import p_map, p_umap
from dscim.menu.simple_storage import EconVars
from zarr.errors import GroupNotFoundError

logger = logging.getLogger(__name__)

Expand Down Expand Up @@ -835,11 +834,7 @@ def coastal_inputs(
adapt_type,
vsl_valuation=None,
):
try:
d = xr.open_zarr(f"{path}/coastal_damages_{version}.zarr")
except GroupNotFoundError:
print(f"Zarr not found: {path}/coastal_damages_{version}.zarr")
exit()
d = xr.open_zarr(f"{path}/coastal_damages_{version}.zarr")

if "vsl_valuation" in d.coords:
if vsl_valuation is None:
Expand Down