We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9d1ddb1 commit d0721e6Copy full SHA for d0721e6
tests/utils/plot_utils_test.py
@@ -800,8 +800,14 @@ def test_save_colored_masks(
800
# check that colored mask is mapped correctly
801
cluster_mask = io.imread(os.path.join(create_masks, fov + f'_{cluster_type}_mask.tiff'))
802
rgb_mask = (colored_mask[:, :, 0]/255).round(1)
803
+ print(list(metacluster_colors.keys()))
804
805
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)
811
if id_num != 6:
812
cluster_idx = np.where(cluster_mask == id_num)
813
colored_idx = np.where(rgb_mask == np.round(metacluster_colors[id_num][0], 1))
0 commit comments