Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test failures on master #53

Closed
ZedThree opened this issue Mar 26, 2020 · 5 comments
Closed

Test failures on master #53

ZedThree opened this issue Mar 26, 2020 · 5 comments

Comments

@ZedThree
Copy link

Hello, I just cloned master and ran:

python3 -m venv testvenv
source testvenv/bin/activate
pip install -U pip
pip install -e .
pip install pytest
pytest

and got the following test failures/errors:

===================================================================================================================================================== warnings summary ======================================================================================================================================================
pleque/core/equilibrium.py:215: 5 tests with warnings
tests/compu_test.py: 1 test with warning
tests/test_2Dinterpolation.py: 6 tests with warnings
tests/test_cocos.py: 48 tests with warnings
tests/test_coordinates.py: 6 tests with warnings
tests/test_equilibria.py: 12 tests with warnings
tests/test_gfile.py: 12 tests with warnings
tests/test_io.py: 6 tests with warnings
tests/test_surface_param.py: 1 test with warning
  /home/peter/Codes/pleque/pleque/core/equilibrium.py:215: DeprecationWarning: np.asscalar(a) is deprecated since NumPy v1.16, use a.item() instead

pleque/core/coordinates.py:463
  /home/peter/Codes/pleque/pleque/core/coordinates.py:463: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3,and in 3.9 it will stop working

pleque/io/metis.py:37
  /home/peter/Codes/pleque/pleque/io/metis.py:37: PendingDeprecationWarning: dropping variables using `drop` will be deprecated; using drop_vars is encouraged.

testvenv/lib64/python3.7/site-packages/numpy/lib/type_check.py:277
  /home/peter/Codes/pleque/testvenv/lib64/python3.7/site-packages/numpy/lib/type_check.py:277: FutureWarning: elementwise == comparison failed and returning scalar instead; this will raise an error or perform elementwise comparison in the future.

testvenv/lib64/python3.7/site-packages/omas/omas_setup.py:16
  /home/peter/Codes/pleque/testvenv/lib64/python3.7/site-packages/omas/omas_setup.py:16: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3,and in 3.9 it will stop working

testvenv/lib64/python3.7/site-packages/omas/omas_hdc.py:9
  /home/peter/Codes/pleque/testvenv/lib64/python3.7/site-packages/omas/omas_hdc.py:9: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3,and in 3.9 it will stop working

-- Docs: https://docs.pytest.org/en/latest/warnings.html
================================================================================================================================================== short test summary info ==================================================================================================================================================
FAILED tests/compu_test.py::test_compu - ValueError: all the input array dimensions for the concatenation axis must match exactly, but along dimension 1, the array at index 0 has size 0 and the array at index 1 has size 2
FAILED tests/surfaces_test.py::test_surfs - assert array([], shape=(1, 0), dtype=float64) is None
FAILED tests/test_cocos.py::test_directions[5-1] - ValueError: all the input array dimensions for the concatenation axis must match exactly, but along dimension 1, the array at index 0 has size 0 and the array at index 1 has size 2
FAILED tests/test_cocos.py::test_directions[5-2] - ValueError: all the input array dimensions for the concatenation axis must match exactly, but along dimension 1, the array at index 0 has size 0 and the array at index 1 has size 2
FAILED tests/test_cocos.py::test_directions[5-3] - ValueError: all the input array dimensions for the concatenation axis must match exactly, but along dimension 1, the array at index 0 has size 0 and the array at index 1 has size 2
FAILED tests/test_cocos.py::test_directions[5-4] - ValueError: all the input array dimensions for the concatenation axis must match exactly, but along dimension 1, the array at index 0 has size 0 and the array at index 1 has size 2
FAILED tests/test_cocos.py::test_coordinates_transforms[5-1] - ValueError: all the input array dimensions for the concatenation axis must match exactly, but along dimension 1, the array at index 0 has size 0 and the array at index 1 has size 2
FAILED tests/test_cocos.py::test_coordinates_transforms[5-2] - ValueError: all the input array dimensions for the concatenation axis must match exactly, but along dimension 1, the array at index 0 has size 0 and the array at index 1 has size 2
FAILED tests/test_cocos.py::test_coordinates_transforms[5-3] - ValueError: all the input array dimensions for the concatenation axis must match exactly, but along dimension 1, the array at index 0 has size 0 and the array at index 1 has size 2
FAILED tests/test_cocos.py::test_coordinates_transforms[5-4] - ValueError: all the input array dimensions for the concatenation axis must match exactly, but along dimension 1, the array at index 0 has size 0 and the array at index 1 has size 2
FAILED tests/test_cocos.py::test_coordinates_transforms[5-5] - ValueError: all the input array dimensions for the concatenation axis must match exactly, but along dimension 1, the array at index 0 has size 0 and the array at index 1 has size 2
FAILED tests/test_cocos.py::test_coordinates_transforms[5-6] - ValueError: all the input array dimensions for the concatenation axis must match exactly, but along dimension 1, the array at index 0 has size 0 and the array at index 1 has size 2
FAILED tests/test_cocos.py::test_coordinates_transforms[5-7] - ValueError: all the input array dimensions for the concatenation axis must match exactly, but along dimension 1, the array at index 0 has size 0 and the array at index 1 has size 2
FAILED tests/test_cocos.py::test_coordinates_transforms[5-8] - ValueError: all the input array dimensions for the concatenation axis must match exactly, but along dimension 1, the array at index 0 has size 0 and the array at index 1 has size 2
FAILED tests/test_cocos.py::test_cocos_consistency[5-1] - ValueError: all the input array dimensions for the concatenation axis must match exactly, but along dimension 1, the array at index 0 has size 0 and the array at index 1 has size 2
FAILED tests/test_cocos.py::test_cocos_consistency[5-2] - ValueError: all the input array dimensions for the concatenation axis must match exactly, but along dimension 1, the array at index 0 has size 0 and the array at index 1 has size 2
FAILED tests/test_cocos.py::test_cocos_consistency[5-3] - ValueError: all the input array dimensions for the concatenation axis must match exactly, but along dimension 1, the array at index 0 has size 0 and the array at index 1 has size 2
FAILED tests/test_cocos.py::test_cocos_consistency[5-4] - ValueError: all the input array dimensions for the concatenation axis must match exactly, but along dimension 1, the array at index 0 has size 0 and the array at index 1 has size 2
FAILED tests/test_cocos.py::test_cocos_consistency[5-5] - ValueError: all the input array dimensions for the concatenation axis must match exactly, but along dimension 1, the array at index 0 has size 0 and the array at index 1 has size 2
FAILED tests/test_cocos.py::test_cocos_consistency[5-6] - ValueError: all the input array dimensions for the concatenation axis must match exactly, but along dimension 1, the array at index 0 has size 0 and the array at index 1 has size 2
FAILED tests/test_cocos.py::test_cocos_consistency[5-7] - ValueError: all the input array dimensions for the concatenation axis must match exactly, but along dimension 1, the array at index 0 has size 0 and the array at index 1 has size 2
FAILED tests/test_cocos.py::test_cocos_consistency[5-8] - ValueError: all the input array dimensions for the concatenation axis must match exactly, but along dimension 1, the array at index 0 has size 0 and the array at index 1 has size 2
FAILED tests/test_equilibria.py::test_equilibria[4] - ValueError: all the input array dimensions for the concatenation axis must match exactly, but along dimension 1, the array at index 0 has size 0 and the array at index 2 has size 2
FAILED tests/test_equilibria.py::test_equilibria[5] - ValueError: all the input array dimensions for the concatenation axis must match exactly, but along dimension 1, the array at index 0 has size 0 and the array at index 1 has size 2
FAILED tests/test_gfile.py::test_calculated_profiles[5] - ValueError: all the input array dimensions for the concatenation axis must match exactly, but along dimension 1, the array at index 0 has size 0 and the array at index 1 has size 2
FAILED tests/test_surface_param.py::test_q_profiles - ValueError: all the input array dimensions for the concatenation axis must match exactly, but along dimension 1, the array at index 0 has size 0 and the array at index 1 has size 2
ERROR tests/test_2Dinterpolation.py::test_surfacefunction[4-data0-coord10-coord20-3-1] - ValueError: all the input array dimensions for the concatenation axis must match exactly, but along dimension 1, the array at index 0 has size 0 and the array at index 2 has size 2
ERROR tests/test_2Dinterpolation.py::test_surfacefunction[4-data1-coord11-coord21-3-0] - ValueError: all the input array dimensions for the concatenation axis must match exactly, but along dimension 1, the array at index 0 has size 0 and the array at index 2 has size 2
ERROR tests/test_2Dinterpolation.py::test_surfacefunction[5-data0-coord10-coord20-3-1] - ValueError: all the input array dimensions for the concatenation axis must match exactly, but along dimension 1, the array at index 0 has size 0 and the array at index 1 has size 2
ERROR tests/test_2Dinterpolation.py::test_surfacefunction[5-data1-coord11-coord21-3-0] - ValueError: all the input array dimensions for the concatenation axis must match exactly, but along dimension 1, the array at index 0 has size 0 and the array at index 1 has size 2
ERROR tests/test_coordinates.py::test_coordinates[4] - ValueError: all the input array dimensions for the concatenation axis must match exactly, but along dimension 1, the array at index 0 has size 0 and the array at index 2 has size 2
ERROR tests/test_coordinates.py::test_coordinates[5] - ValueError: all the input array dimensions for the concatenation axis must match exactly, but along dimension 1, the array at index 0 has size 0 and the array at index 1 has size 2
ERROR tests/test_equilibria.py::test_critical[4] - ValueError: all the input array dimensions for the concatenation axis must match exactly, but along dimension 1, the array at index 0 has size 0 and the array at index 2 has size 2
ERROR tests/test_equilibria.py::test_eq_properties[4] - ValueError: all the input array dimensions for the concatenation axis must match exactly, but along dimension 1, the array at index 0 has size 0 and the array at index 2 has size 2
ERROR tests/test_equilibria.py::test_critical[5] - ValueError: all the input array dimensions for the concatenation axis must match exactly, but along dimension 1, the array at index 0 has size 0 and the array at index 1 has size 2
ERROR tests/test_equilibria.py::test_eq_properties[5] - ValueError: all the input array dimensions for the concatenation axis must match exactly, but along dimension 1, the array at index 0 has size 0 and the array at index 1 has size 2
ERROR tests/test_gfile.py::test_from_to_gfile[4] - ValueError: all the input array dimensions for the concatenation axis must match exactly, but along dimension 1, the array at index 0 has size 0 and the array at index 2 has size 2
ERROR tests/test_gfile.py::test_from_to_gfile[5] - ValueError: all the input array dimensions for the concatenation axis must match exactly, but along dimension 1, the array at index 0 has size 0 and the array at index 1 has size 2
ERROR tests/test_io.py::test_dict2xarray[4] - ValueError: all the input array dimensions for the concatenation axis must match exactly, but along dimension 1, the array at index 0 has size 0 and the array at index 2 has size 2
ERROR tests/test_io.py::test_dict2xarray[5] - ValueError: all the input array dimensions for the concatenation axis must match exactly, but along dimension 1, the array at index 0 has size 0 and the array at index 1 has size 2
======================================================================================================================= 26 failed, 56 passed, 1 skipped, 102 warnings, 14 errors in 226.26s (0:03:46) =======================================================================================================================

Happy to attach the full failure log if that would be helpful!

@kripnerl
Copy link
Owner

Hi Peter,

thank you for the report and for the interest. Please use the unstable branch instead (I've just pushed it).

git fetch
git checkout unstable
pytest
...
====================================== 4 failed, 105 passed, 119 warnings in 298.75s (0:04:58) ======================================

(failing is some local COMPASS stuff due to the lack of mySQL module and VPN connection and unmounted infrastructure.

Unfortunately, I and my colleague agreed to have some review process which we are not able to fulfil due to time reasons. So the main development is done on unstable branch :-). And as the code is used only by the local community there was no problem.

To see some examples please see:
https://pleque.readthedocs.io/en/feature-improve_doc/fuzenet_phd_link.html#Field-line-tracing

I will get things working on the master ASAP.

@kripnerl
Copy link
Owner

@ZedThree Don't hesitate to ask if you have any questions.

@peterkamatej
Copy link
Collaborator

peterkamatej commented Mar 27, 2020 via email

@ZedThree
Copy link
Author

Thanks, I will check that out! There's no rush so please don't go out of your way 😄

Hope you're all keeping safe.

@kripnerl
Copy link
Owner

The code in mater is now updated and the documentation is also up-to-date (e9a140c)

@ZedThree Have you find somehow useful using this repo?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants