Skip to content

Commit

Permalink
MAINT: Add missing isotropic weights
Browse files Browse the repository at this point in the history
  • Loading branch information
jwboth committed Aug 21, 2024
1 parent ed50dc7 commit 25e6c81
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/darsia/measure/wasserstein.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,10 @@ def _setup_face_weights(self) -> None:
"""np.ndarray: cell weights"""
self.face_weights = np.ones(self.grid.num_faces, dtype=float)
"""np.ndarray: face weights"""
self.isotropic_cell_weights = self.cell_weights
"""np.ndarray: isotropic cell weights"""
self.isotropic_face_weights = self.face_weights
"""np.ndarray: isotropic face weights"""
else:
self.cell_weights = self.weight.img
self.face_weights = 1.0 / darsia.cell_to_face_average(
Expand Down

0 comments on commit 25e6c81

Please sign in to comment.