pytroll / pyorbital

Orbital and astronomy computations in python
http://pyorbital.readthedocs.org/
GNU General Public License v3.0
220 stars 75 forks source link

Floating point comparison #117

Closed avalentino closed 1 year ago

avalentino commented 1 year ago

Use assertAlmostEqual for floating point comparison. This fixes a test failure on debian sid.

codecov[bot] commented 1 year ago

Codecov Report

Merging #117 (5590f65) into main (5fb4528) will not change coverage. The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main     #117   +/-   ##
=======================================
  Coverage   87.04%   87.04%           
=======================================
  Files          13       13           
  Lines        2054     2054           
=======================================
  Hits         1788     1788           
  Misses        266      266           
Flag Coverage Δ
unittests 87.04% <100.00%> (ø)

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

Impacted Files Coverage Δ
pyorbital/tests/test_geoloc.py 94.33% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

djhoese commented 1 year ago

Thanks!