Skip to content

Commit

Permalink
show_metseason no longer returns ambiguous error if only one yrstr or…
Browse files Browse the repository at this point in the history
… yrend is NULL
  • Loading branch information
fawda123 committed Dec 15, 2023
1 parent c44b6b5 commit 058bc91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/show_metseason.R
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ show_metseason <- function(mod, metfun = mean, doystr = 1, doyend = 364, yrstr =
)

# get mixmeta models and plotting results
if(!any(is.null(yrstr) | is.null(yrend))){
if(!is.null(yrstr) & !is.null(yrend)){

# get mixmeta models
mixmet <- anlz_mixmeta(metseason, yrstr = yrstr, yrend = yrend, yromit = yromit)
Expand Down

0 comments on commit 058bc91

Please sign in to comment.