Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: replace removePeaks with replaceIntensitiesBelow #101

Merged
merged 3 commits into from Jun 25, 2020
Merged

Conversation

jorainer
Copy link
Member

- Rename/replace `removePeaks` to `replaceIntensitiesBelow` (issue #89).
- Update respective unit tests and documentation.
@jorainer jorainer requested a review from sgibb June 24, 2020 14:45
Copy link
Member

@sgibb sgibb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great PR! Please merge!

R/Spectra.R Outdated Show resolved Hide resolved
if (!is.numeric(threshold))
stop("'threshold' must either be 'min' or numeric.")
if (is.function(threshold))
threshold <- threshold(x[, "intensity"], na.rm = TRUE)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't be threshold(x[, "intensity"], na.rm = TRUE, ...) useful?
Maybe that would be to complicated. Just keep it for now.

jorainer and others added 2 commits June 25, 2020 06:54
Co-authored-by: Sebastian Gibb <mail@sebastiangibb.de>
@codecov-commenter
Copy link

Codecov Report

Merging #101 into master will increase coverage by 0.22%.
The diff coverage is 93.75%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #101      +/-   ##
==========================================
+ Coverage   90.01%   90.23%   +0.22%     
==========================================
  Files          16       16              
  Lines        1492     1495       +3     
==========================================
+ Hits         1343     1349       +6     
+ Misses        149      146       -3     
Impacted Files Coverage Δ
R/Spectra.R 91.88% <90.00%> (+0.11%) ⬆️
R/AllGenerics.R 100.00% <100.00%> (ø)
R/peaks-functions.R 97.91% <100.00%> (+5.91%) ⬆️

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 9d304f7...71537c1. Read the comment docs.

@jorainer jorainer merged commit 2a40021 into master Jun 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants