Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
Unused import (numpy.unique)
Duplicated keyword
black formatting
  • Loading branch information
bendudson committed Oct 29, 2024
1 parent 1697ded commit c0977d2
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions xbout/load.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

from boutdata.data import BoutOptionsFile
import xarray as xr
from numpy import unique

from natsort import natsorted

Expand Down Expand Up @@ -625,14 +624,14 @@ def _auto_open_mfboutdataset(
paths_grid,
concat_dim=concat_dims,
combine="nested",
data_vars="minimal", # Only data variables in which the dimension already appears are concatenated.
coords = "minimal", # Only coordinates in which the dimension already appears are concatenated.
compat = "override", # Duplicate data taken from first dataset
data_vars="minimal", # Only data variables in which the dimension already appears are concatenated.
coords="minimal", # Only coordinates in which the dimension already appears are concatenated.
compat="override", # Duplicate data taken from first dataset
combine_attrs="override", # Duplicate attributes taken from first dataset
preprocess=_preprocess,
engine=filetype,
chunks=chunks,
join="exact", # Don't align. Raise ValueError when indexes to be aligned are not equal
join="exact", # Don't align. Raise ValueError when indexes to be aligned are not equal
**kwargs,
)
else:
Expand Down Expand Up @@ -676,11 +675,10 @@ def _auto_open_mfboutdataset(
ds = xr.combine_nested(
ds_grid,
concat_dim=concat_dims,
data_vars=data_vars,
join="exact",
data_vars="minimal", # Only data variables in which the dimension already appears are concatenated.
coords = "minimal", # Only coordinates in which the dimension already appears are concatenated.
compat = "override", # Duplicate data taken from first dataset
data_vars="minimal", # Only data variables in which the dimension already appears are concatenated.
coords="minimal", # Only coordinates in which the dimension already appears are concatenated.
compat="override", # Duplicate data taken from first dataset
combine_attrs="override", # Duplicate attributes taken from first dataset
)

Expand Down

0 comments on commit c0977d2

Please sign in to comment.