Skip to content

Commit

Permalink
remove decode_times as a hard-coded parameter (#767)
Browse files Browse the repository at this point in the history
  • Loading branch information
philipc2 authored Apr 17, 2024
1 parent d0aa68c commit 00a4f89
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions uxarray/core/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,7 @@ def open_grid(
# attempt to use Xarray directly for remaining input types
else:
try:
grid_ds = xr.open_dataset(
grid_filename_or_obj, decode_times=False, **kwargs
)
grid_ds = xr.open_dataset(grid_filename_or_obj, **kwargs)

uxgrid = Grid.from_dataset(grid_ds, use_dual=use_dual)
except ValueError:
Expand Down Expand Up @@ -168,7 +166,7 @@ def open_dataset(
)

# UxDataset
ds = xr.open_dataset(filename_or_obj, decode_times=False, **kwargs) # type: ignore
ds = xr.open_dataset(filename_or_obj, **kwargs) # type: ignore

# map each dimension to its UGRID equivalent
ds = _map_dims_to_ugrid(ds, uxgrid._source_dims_dict, uxgrid)
Expand Down Expand Up @@ -257,7 +255,7 @@ def open_mfdataset(
)

# UxDataset
ds = xr.open_mfdataset(paths, decode_times=False, **kwargs) # type: ignore
ds = xr.open_mfdataset(paths, **kwargs) # type: ignore

# map each dimension to its UGRID equivalent
ds = _map_dims_to_ugrid(ds, uxgrid._source_dims_dict, uxgrid)
Expand Down

0 comments on commit 00a4f89

Please sign in to comment.