Skip to content

Commit

Permalink
fix type
Browse files Browse the repository at this point in the history
  • Loading branch information
waltsims committed Nov 19, 2024
1 parent 3088069 commit bca3a27
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.dtype("int8")
mask = mask.astype("int8")

if diff is None:
flat_mask = mask.ravel(order="F")
Expand Down

0 comments on commit bca3a27

Please sign in to comment.