IMTEK-Simulation / NuMPI

Utilities for MPI-parallel numerical calculations with Python
MIT License
2 stars 1 forks source link

MAINT: remove usage of xrange. Closes #29 #30

Closed sannant closed 4 years ago

sannant commented 4 years ago

Now NuMPI should be compatible with scipy 1.5.0

pastewka commented 4 years ago

Something is still broken, can you check @AntoineSIMTEK

sannant commented 4 years ago

I am on it.

It's a weird error, only with python 3.6.

E               AssertionError: 
E               Not equal to tolerance rtol=1e-07, atol=0
E             
E               Mismatched elements: 1 / 10 (10%)
E               Max absolute difference: 1.44076597e-07
E               Max relative difference: 1.44076597e-07
E                x: array([1., 1., 1., 1., 1., 1., 1., 1., 1., 1.])
E                y: array([1., 1., 1., 1., 1., 1., 1., 1., 1., 1.])
sannant commented 4 years ago

Ah I think np.testing.assert_allclose does not displacay the floats with high enough precision