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

Fix tests on i386 architectures #46

Merged
merged 1 commit into from
Jun 13, 2023

Conversation

avalentino
Copy link
Contributor

On i386 platforms few unit tests fails.
This PR fixes those failures by setting an absolute tolerance value in floating point arrays comparison.
The absolute tolerance value used is 2e-9. Looking at the data values it seems a reasonable chaice but please feel free to make your own analysis.

  • Tests added
  • Tests passed
  • Passes git diff origin/main **/*py | flake8 --diff

Copy link
Member

@mraspaud mraspaud left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 2e-9 is absolutely good enough I think... https://www.explainxkcd.com/wiki/index.php/2170:_Coordinate_Precision

@codecov
Copy link

codecov bot commented Jun 13, 2023

Codecov Report

Merging #46 (1d23c61) into main (4f3fd0b) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main      #46   +/-   ##
=======================================
  Coverage   88.03%   88.03%           
=======================================
  Files          21       21           
  Lines        1438     1438           
=======================================
  Hits         1266     1266           
  Misses        172      172           
Flag Coverage Δ
unittests 88.03% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
geotiepoints/tests/test_interpolator.py 100.00% <100.00%> (ø)

@avalentino
Copy link
Contributor Author

The test failure seems to be unrelated

@mraspaud
Copy link
Member

Indeed. I'm rerunning the jobs, we'll see how it goes, otherwise maybe @djhoese has an idea?

@djhoese
Copy link
Member

djhoese commented Jun 13, 2023

I think coveralls is having a hard time today.

@djhoese djhoese added bug and removed enhancement labels Jun 13, 2023
@djhoese
Copy link
Member

djhoese commented Jun 13, 2023

@mraspaud I restarted tests and things seem happier now. Had to restart the final coveralls upload twice. I also switched this to a "bug" label. Not sure I'd consider this an "enhancement" in any way. Merging now...

@djhoese djhoese merged commit 80ed038 into pytroll:main Jun 13, 2023
14 checks passed
@avalentino
Copy link
Contributor Author

Thansk @mraspaud and @djhoese

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

Successfully merging this pull request may close these issues.

None yet

3 participants