Skip to content

Commit

Permalink
fix: 🐛 replace numpy product with numpy prod
Browse files Browse the repository at this point in the history
numpy product no longer a thing
  • Loading branch information
neptunes5thmoon committed Oct 9, 2024
1 parent 16c6b20 commit a0fbdb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cellmap_utils_kit/filter_yaml.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ def check_annotated_label(
ref_attrs = access_attributes(crop["labels"][label][ref_scale].attrs["cellmap"])[
"annotation"
]
num_elements = np.product(crop["labels"][label][ref_scale].shape)
num_elements = np.prod(crop["labels"][label][ref_scale].shape).item()
if "unknown" in ref_attrs["complement_counts"]:
num_annotated = num_elements - ref_attrs["complement_counts"]["unknown"]
else:
Expand Down

0 comments on commit a0fbdb4

Please sign in to comment.