There was an error while loading. Please reload this page.
1 parent 2bf0b53 commit 12921dcCopy full SHA for 12921dc
bayesflow/utils/dict_utils.py
@@ -222,7 +222,7 @@ def make_variable_array(
222
else:
223
raise TypeError(f"Only dicts and tensors are supported as arguments, but your estimates are of type {type(x)}")
224
225
- if len(variable_names) is not x.shape[-1]:
+ if len(variable_names) != x.shape[-1]:
226
raise ValueError("Length of 'variable_names' should be the same as the number of variables.")
227
228
if variable_keys is None:
0 commit comments