Skip to content

Getting repeated FutureWarnings regarding compat="no_conflicts" #42

@bnubald

Description

@bnubald

I'm on xarray==2025.8.0, and its showing repeated FutureWarnings:

/home/bryald/micromamba/envs/canari_ml_pub/lib/python3.11/site-packages/preprocess_toolbox/utils.py:71: FutureWarning: In a future version of xarray the default value for compat will change from compat='no_conflicts' to compat='override'. This is likely to lead to different results when combining overlapping variables with the same name. To opt in to new defaults and get rid of these warnings now use `set_options(use_new_combine_kwarg_defaults=True) or set compat explicitly.

while compat is by default set to no_conflicts currently, to keep existing behaviour for future versions, we should define this explicitly.

Source of warning:

if pd.Timestamp(extended_date) in xr.open_mfdataset(extended_date_var_files).time.values:

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No fields configured for Task.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions