Skip to content

Commit 0bf2cdb

Browse files
committed
fix(io): suppress xarray warnings due to new defaults introduced in pydata/xarray#10062
1 parent 1aa37bf commit 0bf2cdb

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/erlab/io/dataloader.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1648,9 +1648,11 @@ def _combine_multiple(
16481648
typing.cast(
16491649
"Sequence[xr.DataArray] | Sequence[xr.Dataset]", data_list
16501650
),
1651-
combine_attrs=self.combine_attrs,
1652-
data_vars="all",
1651+
compat="no_conflicts",
1652+
data_vars=None,
1653+
coords="all",
16531654
join="exact",
1655+
combine_attrs=self.combine_attrs,
16541656
)
16551657
except Exception as e:
16561658
raise RuntimeError(
@@ -1715,7 +1717,9 @@ def _combine_multiple(
17151717
# Magically combine the data
17161718
combined = xr.combine_by_coords(
17171719
processed,
1718-
data_vars="all",
1720+
compat="no_conflicts",
1721+
data_vars=None,
1722+
coords="different",
17191723
join="outer",
17201724
combine_attrs=self.combine_attrs,
17211725
)

0 commit comments

Comments
 (0)