Skip to content

Commit 6553bc4

Browse files
committed
o Fix Ruff
1 parent cf37939 commit 6553bc4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

uxarray/core/api.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,10 @@ def open_grid(
108108
else:
109109
# Attempt to use Xarray directly for remaining input types
110110
# Force netCDF4 engine for .nc files to avoid scipy reader issues
111-
if isinstance(grid_filename_or_obj, (str, os.PathLike)) and str(grid_filename_or_obj).endswith('.nc'):
112-
kwargs.setdefault('engine', 'netcdf4')
111+
if isinstance(grid_filename_or_obj, (str, os.PathLike)) and str(
112+
grid_filename_or_obj
113+
).endswith(".nc"):
114+
kwargs.setdefault("engine", "netcdf4")
113115
grid_ds = xr.open_dataset(grid_filename_or_obj, chunks=grid_chunks, **kwargs)
114116
grid = Grid.from_dataset(grid_ds, use_dual=use_dual)
115117

0 commit comments

Comments
 (0)