Closed gerritholl closed 3 years ago
It's actually IndexError, not AttributeError. The BUFR tests are not run in GitHub CI, so those are skipped rather than failed, but one other test does fail there too. As for the IndexError in test_pansharp_resample
, this appears because neighs
is of dtype float64
. Those have been illegal for indexing back since numy 1.11, so that should have failed already much earlier. Maybe something has changed in scipy.kdtree
causing it to return floats rather than ints?
Indeed: spatial.KDTree([(0, 0)]).data.dtype
is int64
in scipy 1.5, but float64
in scipy 1.6. This triggers the IndexError in test_pansharp_resample
. See https://github.com/scipy/scipy/issues/14296
The other test that fails on GitHub is related to random numbers. Although I seed the random number generator, the result is different on GitHub than it on my local machine. I'm not sure why that happens. Ultimately random numbers are not a good idea in tests, but testing a stochastic algorithm otherwise is difficult.
I suppose an alternative would be mocking the random number generators.
With latest fogpy and satpy master, there are three tests that fail with AttributeError: