adokter / bioRad

R package for analysis and visualisation of biological signals in weather radar data
http://adokter.github.io/bioRad
Other
28 stars 16 forks source link

handle delta linear interpolation if it is a numeric of len 0 #626

Closed iskandari closed 11 months ago

iskandari commented 11 months ago

Resolves error that arises when delta_linear_interpolation is numeric(0)

Error in if (is.na(delta_linear_interpolation)) delta_linear_interpolation = 0 : 
  argument is of length zero
codecov[bot] commented 11 months ago

Codecov Report

Merging #626 (adcedca) into master (4f5b129) will increase coverage by 0.11%. Report is 3 commits behind head on master. The diff coverage is 50.00%.

:exclamation: Current head adcedca differs from pull request most recent head 0808c86. Consider uploading reports for the commit 0808c86 to get more accurate results

@@            Coverage Diff             @@
##           master     #626      +/-   ##
==========================================
+ Coverage   82.11%   82.22%   +0.11%     
==========================================
  Files          61       61              
  Lines        3702     3697       -5     
==========================================
  Hits         3040     3040              
+ Misses        662      657       -5     
Files Changed Coverage Δ
R/integrate_profile.R 76.88% <0.00%> (-0.42%) :arrow_down:
R/as.vpts.R 93.10% <100.00%> (ø)
R/utils.R 91.66% <100.00%> (+5.39%) :arrow_up:
adokter commented 11 months ago

closing and continuing fix in #627