pytroll / pyresample

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

Use pyproj TransformDirection enum for better performance #536

Closed djhoese closed 1 year ago

djhoese commented 1 year ago

As mentioned by @snowman2 in #532, using the pyproj enum for these operations is slightly faster than not using it. This is a simple import and usage.

codecov[bot] commented 1 year ago

Codecov Report

Merging #536 (93e8178) into main (046acf6) will increase coverage by 0.00%. The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main     #536   +/-   ##
=======================================
  Coverage   94.26%   94.26%           
=======================================
  Files          82       82           
  Lines       13052    13055    +3     
=======================================
+ Hits        12303    12306    +3     
  Misses        749      749           
Flag Coverage Δ
unittests 94.26% <100.00%> (+<0.01%) :arrow_up:

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

Files Changed Coverage Δ
pyresample/_spatial_mp.py 83.82% <100.00%> (+0.11%) :arrow_up:
pyresample/geometry.py 87.65% <100.00%> (+<0.01%) :arrow_up:
pyresample/slicer.py 90.76% <100.00%> (+0.07%) :arrow_up:
coveralls commented 1 year ago

Coverage Status

coverage: 93.838% (+0.002%) from 93.836% when pulling 93e8178180e2da20505acaf03cab2640c00059ad on djhoese:bugfix-proj-enums into 046acf6c7933f7cd771ecc9a3ad68e23ddebda97 on pytroll:main.