Skip to content

Commit

Permalink
Handle duplicate times
Browse files Browse the repository at this point in the history
  • Loading branch information
DamienIrving committed Jun 11, 2024
1 parent f70de8c commit 201ecd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ def read_data(
ds = xr.open_mfdataset(infiles, use_cftime=use_cftime)
except ValueError:
ds = xr.open_mfdataset(infiles)

ds = ds.drop_duplicates(dim='time')
for drop_var in drop_vars:
try:
ds = ds.drop(drop_var)
Expand Down

0 comments on commit 201ecd5

Please sign in to comment.