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

Update test_h5image.py

parent 7d3ef60a
No related branches found
No related tags found
No related merge requests found
......@@ -13,7 +13,8 @@ layers = h5_image.get_layers(map)
print(map, len(layers))
patches = h5_image.get_patches(map, True)
patches = h5_image.get_patches(map, False)
print(len(patches))
sorted_patches = {k: v for k, v in sorted(patches.items(), key=lambda item: len(item[1]), reverse=True)}
loc, loc_layers = next(iter(sorted_patches.items()))
row = int(loc.split("_")[0])
......
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