Skip to content

Commit

Permalink
fix(ecmwf-realtime): Do not attempt to modify empty dataset lists
Browse files Browse the repository at this point in the history
  • Loading branch information
devsjc authored Oct 22, 2024
1 parent 169b185 commit 612bb6f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/nwp_consumer/internal/inputs/ecmwf/s3.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,8 @@ def mapCachedRaw(self, *, p: pathlib.Path) -> xr.Dataset:
file=p,
file_datasets=len(all_dss),
)
return xr.Dataset()

ds: xr.Dataset = xr.merge(area_dss, combine_attrs="drop_conflicts")
del area_dss, all_dss

Expand Down

0 comments on commit 612bb6f

Please sign in to comment.