Skip to content

Commit

Permalink
Fix bug amplitude
Browse files Browse the repository at this point in the history
  • Loading branch information
dedean16 committed Oct 2, 2024
1 parent 7727b33 commit d1f693a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openwfs/algorithms/dual_reference.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def amplitude(self, value):
(np.ones(shape=self._shape) / np.sqrt(self.masks[side].sum())).astype(np.float32) for side in range(2))
return

if value.shape != self._shape:
if value[0].shape != self._shape or value[1].shape != self._shape :
raise ValueError(
"The amplitude and group mask must all have the same shape."
)
Expand Down

0 comments on commit d1f693a

Please sign in to comment.