robintw / Py6S

A Python interface to the 6S Radiative Transfer Model
GNU Lesser General Public License v3.0
186 stars 105 forks source link

General fixing of tests, plus adding water component extraction #79

Closed robintw closed 3 years ago

robintw commented 3 years ago

Add extraction of water component reflectance (foam, water, sunglint)

Also includes lots of updates to the tests. One of the test files (test/test.py) hadn't been picked up properly by pytest for ages, so hadn't been running, and had loads of out-dated tests in it. These have been fixed - by removing some out-dated tests, and fixing others.

codecov[bot] commented 3 years ago

Codecov Report

Merging #79 (1f92751) into master (6496fe0) will increase coverage by 5.03%. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #79      +/-   ##
==========================================
+ Coverage   83.59%   88.63%   +5.03%     
==========================================
  Files          18       18              
  Lines        1707     1707              
==========================================
+ Hits         1427     1513      +86     
+ Misses        280      194      -86     
Impacted Files Coverage Δ
Py6S/outputs.py 82.14% <ø> (+0.71%) :arrow_up:
Py6S/SixSHelpers/spectra.py 75.00% <100.00%> (+32.50%) :arrow_up:
Py6S/Params/atmoscorr.py 87.50% <0.00%> (ø)
Py6S/Params/wavelength.py 99.70% <0.00%> (+1.18%) :arrow_up:
Py6S/Params/ground_reflectance.py 71.31% <0.00%> (+2.45%) :arrow_up:
Py6S/Params/altitudes.py 96.77% <0.00%> (+3.22%) :arrow_up:
Py6S/sixs_exceptions.py 83.33% <0.00%> (+5.55%) :arrow_up:
Py6S/Params/geometry.py 89.77% <0.00%> (+13.63%) :arrow_up:
... and 1 more

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 6496fe0...1f92751. Read the comment docs.