Skip to content

Commit ea4a856

Browse files
authored
Merge pull request #410 from ClimateImpactLab/update_zarr
Remove zarr error check as unnecessary
2 parents 43e9fd1 + 56ac414 commit ea4a856

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/dscim/preprocessing/input_damages.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
from functools import partial
1515
from p_tqdm import p_map, p_umap
1616
from dscim.menu.simple_storage import EconVars
17-
from zarr.errors import GroupNotFoundError
1817

1918
logger = logging.getLogger(__name__)
2019

@@ -835,11 +834,7 @@ def coastal_inputs(
835834
adapt_type,
836835
vsl_valuation=None,
837836
):
838-
try:
839-
d = xr.open_zarr(f"{path}/coastal_damages_{version}.zarr")
840-
except GroupNotFoundError:
841-
print(f"Zarr not found: {path}/coastal_damages_{version}.zarr")
842-
exit()
837+
d = xr.open_zarr(f"{path}/coastal_damages_{version}.zarr")
843838

844839
if "vsl_valuation" in d.coords:
845840
if vsl_valuation is None:

0 commit comments

Comments
 (0)