Skip to content

Commit d0721e6

Browse files
committed
Testing save colored mask
1 parent 9d1ddb1 commit d0721e6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/utils/plot_utils_test.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -800,8 +800,14 @@ def test_save_colored_masks(
800800
# check that colored mask is mapped correctly
801801
cluster_mask = io.imread(os.path.join(create_masks, fov + f'_{cluster_type}_mask.tiff'))
802802
rgb_mask = (colored_mask[:, :, 0]/255).round(1)
803+
print(list(metacluster_colors.keys()))
803804

804805
for id_num in metacluster_colors.keys():
806+
cluster_idx = np.where(cluster_mask == id_num)
807+
colored_idx = np.where(rgb_mask == np.round(metacluster_colors[id_num][0], 1))
808+
print(id_num)
809+
print(cluster_idx)
810+
print(colored_idx)
805811
if id_num != 6:
806812
cluster_idx = np.where(cluster_mask == id_num)
807813
colored_idx = np.where(rgb_mask == np.round(metacluster_colors[id_num][0], 1))

0 commit comments

Comments
 (0)