Skip to content

Commit 69d052a

Browse files
committed
little modification of shape_consistency
1 parent 4bbe731 commit 69d052a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bayesml/_check.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,6 @@ def onehot_vecs(val,val_name,exception_class):
218218

219219
def shape_consistency(val: int, val_name: str, correct: int, correct_name: str, exception_class):
220220
if val != correct:
221-
message = (f"{val_name} must coincide with {correct_name}:"
222-
+ f"{val_name}={val}, {correct_name}={correct}")
221+
message = (f"{val_name} must coincide with {correct_name}: "
222+
+ f"{val_name} = {val}, {correct_name} = {correct}")
223223
raise(exception_class(message))

0 commit comments

Comments
 (0)