File tree Expand file tree Collapse file tree 2 files changed +206
-61
lines changed Expand file tree Collapse file tree 2 files changed +206
-61
lines changed Original file line number Diff line number Diff line change @@ -461,12 +461,11 @@ def process_subset_opt(opt, subset):
461
461
and opt != "minimal"
462
462
and original != concat_over
463
463
):
464
- emit_user_level_warning (
464
+ warnings . append (
465
465
opt .warning_message (
466
466
"This is likely to lead to different results when multiple datasets "
467
467
"have matching variables with overlapping values." ,
468
- ),
469
- FutureWarning ,
468
+ )
470
469
)
471
470
else :
472
471
valid_vars = tuple (getattr (datasets [0 ], subset ))
@@ -486,8 +485,13 @@ def process_subset_opt(opt, subset):
486
485
)
487
486
concat_over .update (opt )
488
487
488
+ warnings = []
489
489
process_subset_opt (data_vars , "data_vars" )
490
490
process_subset_opt (coords , "coords" )
491
+
492
+ for warning in warnings :
493
+ emit_user_level_warning (warning , FutureWarning )
494
+
491
495
return concat_over , equals , concat_dim_lengths
492
496
493
497
You can’t perform that action at this time.
0 commit comments