Skip to content

Commit 12921dc

Browse files
authored
fix dict utils (#410)
* fix dict utils * fix dict utils
1 parent 2bf0b53 commit 12921dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bayesflow/utils/dict_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ def make_variable_array(
222222
else:
223223
raise TypeError(f"Only dicts and tensors are supported as arguments, but your estimates are of type {type(x)}")
224224

225-
if len(variable_names) is not x.shape[-1]:
225+
if len(variable_names) != x.shape[-1]:
226226
raise ValueError("Length of 'variable_names' should be the same as the number of variables.")
227227

228228
if variable_keys is None:

0 commit comments

Comments
 (0)