Skip to content

Commit d7bdfcf

Browse files
committed
Const can be initialized with no table value
1 parent 197c477 commit d7bdfcf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

brml/prob_tables/const.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def _check_table(self, value):
4444
# If list or numpy array, check size
4545
elif isinstance(value, (np.ndarray, list)):
4646
# If only 1 element -> return flatten array
47-
if np.array([value]).size == 1:
47+
if np.array([value]).size <= 1:
4848
return np.array([value]).flatten()
4949
# Otherwise provided more than one value
5050
else:

0 commit comments

Comments
 (0)