pySTEPS / pysteps

Python framework for short-term ensemble prediction systems.
https://pysteps.github.io/
BSD 3-Clause "New" or "Revised" License
466 stars 168 forks source link

Test fft-generators #213

Closed dnerini closed 3 years ago

dnerini commented 3 years ago

Add tests that would have detected the errors in plot_noise_generators.py example.

codecov[bot] commented 3 years ago

Codecov Report

Merging #213 (e8f620d) into master (21192cb) will increase coverage by 0.62%. The diff coverage is 100.00%.

:exclamation: Current head e8f620d differs from pull request most recent head 5be1107. Consider uploading reports for the commit 5be1107 to get more accurate results Impacted file tree graph

@@            Coverage Diff             @@
##           master     #213      +/-   ##
==========================================
+ Coverage   79.22%   79.84%   +0.62%     
==========================================
  Files         136      137       +1     
  Lines        9903     9930      +27     
==========================================
+ Hits         7846     7929      +83     
+ Misses       2057     2001      -56     
Flag Coverage Δ
unit_tests 79.84% <100.00%> (+0.62%) :arrow_up:

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

Impacted Files Coverage Δ
pysteps/tests/test_noise_fftgenerators.py 100.00% <100.00%> (ø)
pysteps/utils/spectral.py 72.72% <0.00%> (+1.51%) :arrow_up:
pysteps/noise/fftgenerators.py 69.32% <0.00%> (+17.57%) :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 21192cb...5be1107. Read the comment docs.