Skip to content

Commit

Permalink
revert change
Browse files Browse the repository at this point in the history
  • Loading branch information
waltsims committed Nov 19, 2024
1 parent e785e17 commit 87d5d63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kwave/utils/matlab.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def matlab_mask(arr: np.ndarray, mask: np.ndarray, diff: Optional[int] = None) -
"""

if mask.dtype == "uint8":
mask = mask.astype(np.uint16)
mask = mask.astype(np.int16)

if diff is None:
return np.expand_dims(arr.ravel(order="F")[mask.ravel(order="F")], axis=-1) # compatibility, n => [n, 1]
Expand Down

0 comments on commit 87d5d63

Please sign in to comment.