Skip to content

Commit

Permalink
Fix testing
Browse files Browse the repository at this point in the history
  • Loading branch information
EtienneCmb committed Sep 5, 2023
1 parent e636906 commit 8b503c2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frites/dataset/ds_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def multi_to_uni_conditions(x, var_name=None, verbose=None):
return [x]
assert all([type(x[0]) == type(k) for k in x])
x_types = type(x[0])
if not isinstance(x_types, np.ndarray):
if not isinstance(x[0], np.ndarray):
return x
# get if all variables are integers and multicolumns else skip it
is_int = all([k.dtype in CONFIG['INT_DTYPE'] for k in x])
Expand Down
2 changes: 1 addition & 1 deletion frites/dataset/tests/test_ds_ephy.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,4 +211,4 @@ def test_get_connectivity_pairs(self):


if __name__ == '__main__':
TestDatasetEphy().test_nb_min_suj()
TestDatasetEphy().test_multiconditions()

0 comments on commit 8b503c2

Please sign in to comment.