Skip to content

Commit

Permalink
refactor: replace np.product with np.prod for deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
leoguignard committed Jan 8, 2025
1 parent 7643a34 commit 8dc660b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sc3D/sc3D.py
Original file line number Diff line number Diff line change
Expand Up @@ -2378,7 +2378,7 @@ def compute_volumes(self, tissues_to_treat=None, bead_size=(10, 10, 30)):
tissues_to_treat = self.all_tissues

volumes = {}
bead_volume = np.product(bead_size)
bead_volume = np.prod(bead_size)
for t in tissues_to_treat:
volumes[self.corres_tissue.get(t, t)] = (
len(self.cells_from_tissue.get(t, [])) * bead_volume
Expand Down

0 comments on commit 8dc660b

Please sign in to comment.