pytroll / pyorbital

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

Add get_observer_look test for scalar case and update stickler config #91

Closed gerritholl closed 2 years ago

gerritholl commented 2 years ago

Add a get_observer_look unit test when passing scalars / regular Python types.

Although #90 was a false alarm and had already been fixed in #77, it appears this may have been accidental, as no mention of this bug is made in #77 or #72. Add a unit test for passing scalars to get_observer_look to make sure we cover this case in the future.

Also updates stickler configuration to make sure it uses Python 3 and respects configuration from setup.cfg.

codecov[bot] commented 2 years ago

Codecov Report

Merging #91 (104ba09) into main (cbe67e2) will increase coverage by 0.03%. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main      #91      +/-   ##
==========================================
+ Coverage   86.64%   86.67%   +0.03%     
==========================================
  Files          13       13              
  Lines        2021     2026       +5     
==========================================
+ Hits         1751     1756       +5     
  Misses        270      270              
Flag Coverage Δ
unittests 86.67% <100.00%> (+0.03%) :arrow_up:

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

Impacted Files Coverage Δ
pyorbital/tests/test_orbital.py 96.28% <100.00%> (+0.06%) :arrow_up:
pyorbital/tlefile.py 91.06% <0.00%> (+0.02%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update cbe67e2...104ba09. Read the comment docs.