File: 0002-Fix-FutureWarning.patch

package info (click to toggle)
mapraster 2026.01.06-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 556 kB
  • sloc: python: 476; makefile: 105
file content (22 lines) | stat: -rw-r--r-- 714 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
From: Antonio Valentino <antonio.valentino@tiscali.it>
Date: Sun, 11 Jan 2026 01:33:31 +0000
Subject: Fix FutureWarning

Forwarded: https://github.com/umr-lops/mapraster/pull/40
---
 mapraster/main.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mapraster/main.py b/mapraster/main.py
index 87f95cf..f2e9f5e 100644
--- a/mapraster/main.py
+++ b/mapraster/main.py
@@ -135,7 +135,7 @@ def map_raster(
         # final interpolation on image grid
         mapped.append(upscaled.interp(x=target_lon, y=target_lat).drop_vars(("x", "y")))
 
-    mapped_ds = xr.merge(mapped)
+    mapped_ds = xr.merge(mapped, compat="no_conflicts")
 
     # --- Dataset → DataArray ---
     if name is not None: