From 6dee70139f4e5e71121e7b8219da345fa43cafed Mon Sep 17 00:00:00 2001 From: "Stephane RAYNAUD (SHOM)" Date: Mon, 24 Jun 2024 14:46:11 +0000 Subject: [PATCH] Fix errors handling in to_rect --- xoa/grid.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xoa/grid.py b/xoa/grid.py index 9d2a65e..f3a22e2 100644 --- a/xoa/grid.py +++ b/xoa/grid.py @@ -612,7 +612,7 @@ def to_rect(da, tol=1e-5, errors="warn"): "Cannot convert to curvilinear to rectangular grid since since coordinate " f"'{name}' is not constant along one of its dimensions" ) - if errors == "errors": + if errors == "raise": raise XoaError(msg) elif errors == "ignore": xoa_warn(msg)