From d079183437533114e9424fe0c58f8f0820539e10 Mon Sep 17 00:00:00 2001
From: Nattapon Jaroenchai <b_nj18@live.com>
Date: Wed, 25 Oct 2023 16:36:03 -0500
Subject: [PATCH] Update test_h5image.py

---
 test_h5image.py | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/test_h5image.py b/test_h5image.py
index f679548..3f9ba6b 100644
--- a/test_h5image.py
+++ b/test_h5image.py
@@ -13,10 +13,15 @@ layers = h5_image.get_layers(map)
 print(map, len(layers))
 
 
-patches = h5_image.get_patches(map, False)
-print(patches)
-sorted_patches = {k: v for k, v in sorted(patches.items(), key=lambda item: len(item[1]), reverse=True)}
+patches_f = h5_image.get_patches(map, False)
+print(patches_f)
+patches_t = h5_image.get_patches(map, True)
+print(patches_t)
+
+sorted_patches = {k: v for k, v in sorted(patches_t.items(), key=lambda item: len(item[1]), reverse=True)}
 loc, loc_layers = next(iter(sorted_patches.items()))
+
 row = int(loc.split("_")[0])
 col = int(loc.split("_")[1])
+
 print(f"Biggest number of layers ({len(loc_layers)}) for {map} is at ( {row}, {col})")
-- 
GitLab