Commit ff3535ab authored by Dominique Benielli's avatar Dominique Benielli
Browse files

test passed

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