Skip to content

Commit ed1d02b

Browse files
authored
Update ds_utils.py error flake
1 parent 6676b19 commit ed1d02b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

frites/dataset/ds_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def multi_to_uni_conditions(x, var_name=None, verbose=None):
3232

3333
if not isinstance(x, (list, tuple)):
3434
return [x]
35-
assert all([type(x[0]) == type(k) for k in x])
35+
assert all([isinstance(k, type(x[0])) for k in x])
3636
if not isinstance(x[0], np.ndarray):
3737
return x
3838
# get if all variables are integers and multicolumns else skip it

0 commit comments

Comments
 (0)