pytroll / pyresample

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

Add stacklevel to all pyresample warnings #502

Closed djhoese closed 1 year ago

djhoese commented 1 year ago

This resolves pre-commit flake8 warnings.

djhoese commented 1 year ago

As discussed on slack, I relaxed the thresholds on the failing geocentric_resolution test comparisons to workaround some changes in PROJ. As far as I can tell this PROJ PR is the one that changed things in version 9.1.1 (I know it says 9.2.0, but it is 9.1.1):

https://github.com/OSGeo/PROJ/pull/3361

codecov[bot] commented 1 year ago

Codecov Report

Merging #502 (69feb31) into main (6ff3568) will decrease coverage by 0.34%. The diff coverage is 50.00%.

@@            Coverage Diff             @@
##             main     #502      +/-   ##
==========================================
- Coverage   94.27%   93.93%   -0.34%     
==========================================
  Files          78       78              
  Lines       12838    12838              
==========================================
- Hits        12103    12060      -43     
- Misses        735      778      +43     
Flag Coverage Δ
unittests 93.93% <50.00%> (-0.34%) :arrow_down:

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

Impacted Files Coverage Δ
pyresample/area_config.py 90.44% <ø> (ø)
pyresample/bilinear/__init__.py 50.00% <0.00%> (ø)
pyresample/bilinear/_base.py 95.80% <ø> (ø)
pyresample/bilinear/_numpy_resampler.py 94.11% <0.00%> (ø)
pyresample/bilinear/xarr.py 92.90% <0.00%> (ø)
pyresample/boundary.py 95.58% <ø> (ø)
pyresample/future/resamplers/nearest.py 92.27% <ø> (ø)
pyresample/future/resamplers/registry.py 85.36% <0.00%> (ø)
pyresample/image.py 85.00% <ø> (ø)
pyresample/kd_tree.py 92.02% <ø> (ø)
... and 7 more

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

coveralls commented 1 year ago

Coverage Status

Coverage: 93.795%. Remained the same when pulling 69feb3151899adbe6ae3ae3c47f1de6f0f60bea5 on djhoese:bugfix-warning-stacklevel into 6ff356827093d9430e59dbe741bd6201f30bd799 on pytroll:main.