Skip to content
Snippets Groups Projects
Commit ff3535ab authored by Dominique Benielli's avatar Dominique Benielli
Browse files

test passed

parent 851a608c
No related branches found
No related tags found
No related merge requests found
Pipeline #3873 failed
...@@ -58,7 +58,7 @@ Testing ...@@ -58,7 +58,7 @@ Testing
**pytest** and **pytest-cov** are required to run the **test suite** with:: **pytest** and **pytest-cov** are required to run the **test suite** with::
cd multiconfusion cd multimodal
pytest pytest
A code coverage report is displayed in the terminal when running the tests. A code coverage report is displayed in the terminal when running the tests.
...@@ -141,7 +141,5 @@ Copyright © 2017-2018 AMU, CNRS, UTLN ...@@ -141,7 +141,5 @@ Copyright © 2017-2018 AMU, CNRS, UTLN
License License
~~~~~~~ ~~~~~~~
**multiconfusion** is free software: you can redistribute it and/or modify **scikit-multimodallearn** is free software: you can redistribute it and/or modify
it under the terms of the **GNU Lesser General Public License** as published by it under the terms of the **New BSD License**
the Free Software Foundation, either **version 3** of the License, or
(at your option) any later version.
...@@ -355,8 +355,11 @@ class MultiModalArray(np.ndarray, MultiModalData): ...@@ -355,8 +355,11 @@ class MultiModalArray(np.ndarray, MultiModalData):
view_ind = np.array([0, new_data.shape[1]]) view_ind = np.array([0, new_data.shape[1]])
except Exception as e: except Exception as e:
raise ValueError('Reshape your data') raise ValueError('Reshape your data')
if new_data.ndim < 2 :
if new_data.ndim < 2 or new_data.shape == (1, 1) or view_ind[-1] > new_data.shape[1]: raise ValueError('Reshape your data')
if new_data.ndim > 1 and new_data.shape == (1, 1):
raise ValueError('Reshape your data')
if view_ind.ndim < 2 and new_data.ndim <2 and view_ind[-1] > new_data.shape[1]:
raise ValueError('Reshape your data') raise ValueError('Reshape your data')
# view_ind_self = view_ind # view_ind_self = view_ind
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment