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

Update test_h5image.py

parent 3664dc18
No related branches found
No related tags found
1 merge request!1updated main for release
Pipeline #2493 canceled
...@@ -14,7 +14,7 @@ print(map, len(layers)) ...@@ -14,7 +14,7 @@ print(map, len(layers))
patches = h5_image.get_patches(map, False) patches = h5_image.get_patches(map, False)
print(patches[0]) print(patches)
sorted_patches = {k: v for k, v in sorted(patches.items(), key=lambda item: len(item[1]), reverse=True)} 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())) loc, loc_layers = next(iter(sorted_patches.items()))
row = int(loc.split("_")[0]) 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