Skip to content

Commit

Permalink
Merge pull request #168 from mkofler96/array_err_fix
Browse files Browse the repository at this point in the history
fixed error message in arr.py
  • Loading branch information
j042 authored Nov 10, 2023
2 parents 88322cb + 3db4869 commit e57672f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gustaf/utils/arr.py
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ def is_shape(arr, shape, strict=False):

if arr.ndim != len(shape):
if strict:
raise ValueError(f"array should be {arr.ndim}D")
raise ValueError(f"array should be {len(shape)}D")
return False

for i, (a, s) in enumerate(zip(arr.shape, shape)):
Expand Down

0 comments on commit e57672f

Please sign in to comment.