pmorissette / ffn

ffn - a financial function library for Python
pmorissette.github.io/ffn
MIT License
2.03k stars 300 forks source link

Supress divide warnings #179

Closed timkpaine closed 2 years ago

timkpaine commented 2 years ago

np.divide can produce warnings when nan are present that can be "safely" ignored. This PR suppresses those warnings

codecov-commenter commented 2 years ago

Codecov Report

Merging #179 (5df1963) into master (15c60da) will increase coverage by 0.07%. The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #179      +/-   ##
==========================================
+ Coverage   57.31%   57.38%   +0.07%     
==========================================
  Files           4        4              
  Lines        1155     1157       +2     
  Branches      251      251              
==========================================
+ Hits          662      664       +2     
  Misses        429      429              
  Partials       64       64              
Impacted Files Coverage Δ
ffn/core.py 59.88% <100.00%> (+0.08%) :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 15c60da...5df1963. Read the comment docs.