ODTbrain icon indicating copy to clipboard operation
ODTbrain copied to clipboard

GitHub Actions: 2D Fourier mapping tests inconsistent on macOS and Linux

Open paulmueller opened this issue 4 years ago • 2 comments
trafficstars

This issue can be reproduced for very specific python versions and so far happens consistently only on specific CI runs.

It must have something to do with the environment. Python packages on GH Actions are all from PyPI...

import numpy as np
import pathlib
import matplotlib.pylab as plt

paths = ["data_expected.txt", "data_curious.txt"]

data = [np.loadtxt(f) for f in paths]


p1 = data[0].view(complex).reshape(22, 22)
p2 = data[1].view(complex).reshape(22, 22)


ax1 = plt.subplot(221, title="expected real")
ax1.imshow(p1.real)

ax2 = plt.subplot(222, title="expected imag")
ax2.imshow(p2.real)

ax3 = plt.subplot(223, title="diff real")
ax3.imshow(p2.real - p1.real)

ax4 = plt.subplot(224, title="diff imag")
ax4.imshow(p2.imag- p1.imag)

plt.show()

image

paulmueller avatar Apr 12 '21 21:04 paulmueller

data_.zip

paulmueller avatar Oct 17 '22 08:10 paulmueller

This test passes on my local Linux machine, but on GitHub Actions, it most often fails...

paulmueller avatar Oct 17 '22 11:10 paulmueller