DHI / DHI/modelskill

Silence xarray FutureWarning for merge compat parameter

Open
#569 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
56
Forks
9
Avg merge
57m
Merged PRs (30d)
3

Description

xarray emits a FutureWarning when merging datasets without explicit `compat` parameter:

```
FutureWarning: In a future version of xarray the default value for compat will change from compat='no_conflicts' to compat='override'.
```

Update `Comparer.__add__` to explicitly pass `compat='no_conflicts'` to maintain current behavior.

File: `src/modelskill/comparison/_comparison.py` (around line 775)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.