Skip to content

Commit

Permalink
test related to layer metadata commit fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
yrkim98 committed Dec 11, 2024
1 parent afc515e commit 37cba4c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def dispatch_save_thresholded_images(self) -> None:
def set_original_layers(self, layer_list: list[Layer]) -> None:
ordered_layers: OrderedDict[str, np.ndarray] = OrderedDict()
for layer in layer_list:
if "prob_map" in layer.metadata:
if layer.metadata is not None and "prob_map" in layer.metadata:
ordered_layers[layer.name] = layer.metadata["prob_map"]
else:
ordered_layers[layer.name] = layer.data
Expand Down

0 comments on commit 37cba4c

Please sign in to comment.