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

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

Open
paulmueller opened this issue Apr 12, 2021 · 2 comments

Comments

@paulmueller
Copy link
Member

paulmueller commented Apr 12, 2021

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
Copy link
Member Author

data_.zip

paulmueller added a commit that referenced this issue Oct 17, 2022
@paulmueller paulmueller changed the title 2D Fourier mapping test fails on macOS 2D Fourier mapping tests inconsistent on macOS and Linux Oct 17, 2022
@paulmueller
Copy link
Member Author

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

paulmueller added a commit that referenced this issue Oct 17, 2022
@paulmueller paulmueller changed the title 2D Fourier mapping tests inconsistent on macOS and Linux GitHub Actions: 2D Fourier mapping tests inconsistent on macOS and Linux Oct 18, 2022
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

1 participant