Skip to content
Snippets Groups Projects
Commit d0791834 authored by Nattapon Jaroenchai's avatar Nattapon Jaroenchai
Browse files

Update test_h5image.py

parent 3edbcf6a
Branches additional_input
No related tags found
1 merge request!1updated main for release
Pipeline #2494 canceled
......@@ -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})")
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment