From 33af9ebd249e0dd57e49ca6e3ae7713c2c1bfd82 Mon Sep 17 00:00:00 2001
From: "raffaele.gaetano" <raffaele.gaetano@cirad.fr>
Date: Fri, 23 Jun 2023 13:28:11 +0200
Subject: [PATCH] ENH: minor changes.

---
 Common/geometry.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/Common/geometry.py b/Common/geometry.py
index 21622c6..6d7397e 100644
--- a/Common/geometry.py
+++ b/Common/geometry.py
@@ -252,7 +252,7 @@ def get_displacements_to_ref(_lst: List[otb.Application], _msk: List[otb.Applica
     geobin_spacing = floor((sz-geobin_size*ceil(sqrt(num_geobins))-2*margin) / 4)
 
     shifts = []
-    for i in tqdm(range(0,len(_lst))):
+    for i in tqdm(range(0,len(_lst)), desc="Computing displacements"):
         if i != idx:
             if use_masks:
                 sh = compute_displacement_with_masks(_lst[i], ref_img, _msk[i], ref_msk,
@@ -324,8 +324,8 @@ def distance_constrained_2d_sampling(n, shape, min_dist):
     init_dist = np.min((x[1] - x[0], y[1] - y[0]))
 
     if init_dist <= min_dist:
-        print(
-            '[INFO] Grid too small for the requested number of patches, returning regular grid without distance constraint.')
+        #print(
+        #    '[INFO] Grid too small for the requested number of patches, returning regular grid without distance constraint.')
         return np.round(coords).astype(np.int)
 
     # perturb points
-- 
GitLab