From d536846a7c74507a0b590e5bfd5c53be5e95bb05 Mon Sep 17 00:00:00 2001
From: POLCHER Jan <jan.polcher@lmd.jussieu.fr>
Date: Mon, 10 Mar 2025 13:28:07 +0100
Subject: [PATCH] Remove a tolerence of older Python3 versions

---
 Interface.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/Interface.py b/Interface.py
index 5bd4ab6..4a3ca83 100644
--- a/Interface.py
+++ b/Interface.py
@@ -79,7 +79,10 @@ class HydroOverlap :
 #
     def __init__(self, nbpt, nbvmax, sub_pts, sub_index_in, sub_area_in, sub_lon_in, sub_lat_in, sub_hdom_in, part, modelgrid, hydrodata) :
         #
-        print("np.shape(sub_hdom_in)", np.shape(sub_hdom_in))
+        if isinstance(sub_hdom_in, list) :
+            print("len(sub_hdom_in)", len(sub_hdom_in))
+        else :
+            print("np.shape(sub_hdom_in)", np.shape(sub_hdom_in))
         #
         # Reshape stuff so that it fits into arrays
         #
-- 
GitLab