pytroll / pyresample

Geospatial image resampling in Python
http://pyresample.readthedocs.org
GNU Lesser General Public License v3.0
344 stars 95 forks source link

Remove more warnings encountered during tests #513

Closed djhoese closed 1 year ago

djhoese commented 1 year ago

More PROJ and invalid value warnings that are raised during testing

djhoese commented 1 year ago

This PR gets us from 677 warnings to 253 warnings. Quite the improvement. Here's the breakdown pytest tells me of the remaining ones:

pyresample/test/test_area_config.py: 4 warnings
pyresample/test/test_bilinear.py: 27 warnings
pyresample/test/test_bucket.py: 20 warnings
pyresample/test/test_data_reduce.py: 2 warnings
pyresample/test/test_ewa_ll2cr.py: 1 warning
pyresample/test/test_geometry_legacy.py: 10 warnings
pyresample/test/test_grid.py: 9 warnings
pyresample/test/test_image.py: 15 warnings
pyresample/test/test_utils.py: 27 warnings
pyresample/test/test_geometry/test_area.py: 2 warnings
pyresample/test/test_geometry/test_swath.py: 4 warnings
codecov[bot] commented 1 year ago

Codecov Report

Merging #513 (ed0efa2) into main (327cec1) will increase coverage by 0.00%. The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main     #513   +/-   ##
=======================================
  Coverage   94.31%   94.32%           
=======================================
  Files          79       79           
  Lines       12936    12944    +8     
=======================================
+ Hits        12201    12209    +8     
  Misses        735      735           
Flag Coverage Δ
unittests 94.32% <100.00%> (+<0.01%) :arrow_up:

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

Impacted Files Coverage Δ
pyresample/geometry.py 87.50% <100.00%> (+<0.01%) :arrow_up:
pyresample/gradient/__init__.py 95.16% <100.00%> (ø)
pyresample/test/test_dask_ewa.py 98.94% <100.00%> (-0.01%) :arrow_down:
pyresample/test/test_geometry/test_swath.py 100.00% <100.00%> (ø)
pyresample/test/test_gradient.py 99.00% <100.00%> (+0.01%) :arrow_up:
coveralls commented 1 year ago

Coverage Status

Coverage: 93.846% (+0.004%) from 93.843% when pulling ed0efa28d63fcf18fbf61f43a8065fd007378e12 on djhoese:remove-warnings2 into 327cec12f080d9b17bd2aad9981938472f7dde74 on pytroll:main.