Skip to content

Commit

Permalink
add another error message
Browse files Browse the repository at this point in the history
  • Loading branch information
wincowgerDEV committed Jan 4, 2024
1 parent 6063d86 commit 2abf6f5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions R/smooth_intens.R
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,9 @@ calc_window_points.OpenSpecy <- function(x, wavenum_width = 70){
if(raw_points > length(x$wavenumber)){
stop("The wavenum_width must be shorter than the full spectrum.")
}
if(raw_points <= 3){
stop("The wavenum_width must be longer than 3X the spectral resolution.")
}
return(raw_points)
}

Expand Down

0 comments on commit 2abf6f5

Please sign in to comment.